Problem with javascript generated link on Firefox.
-
I installed a copy of WordPress at http://www.woggie.com. I installed a copy of a script called phpAdsNew on another domain. phpAdsNew basically serves ads and keeps track of them. I generated the invocation code for a text ad and placed it at the top of index.php in my theme’s folder. This is the code:
<script language='JavaScript' type='text/javascript' src='http://www.blazonsolutions.info/ads/adx.js'></script>
<script language='JavaScript' type='text/javascript'>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://www.blazonsolutions.info/ads/adjs.php?n=" + phpAds_random);
document.write ("&what=zone:2&target=_blank");
document.write ("&exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&referer=" + escape(document.referrer));
document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://www.blazonsolutions.info/ads/adclick.php?n=a25f25ef' target='_blank'><img src='http://www.blazonsolutions.info/ads/adview.php?what=zone:2&n=a25f25ef' border='0' alt=''></a></noscript>The text ad is visible between the header image and the top post, and the link looks like a hyperlink. I put my mouse pointer over the link and I get
javascript:CJ311502X678.submit();. Clinking on the link is supposed to launch a new window and connect to the sponsors website.When I click on the link in Firefox nothing happens. When I place the invocation code in any WordPress file and then click on the resulting link in Firefox nothing happens.
When I make a test page called http://www.woggie.com/testing.php , and put the invocation code on it, it works perfectly. When I bring up http://www.woggie.com in Internet Explorer, it works perfectly. It only DOESN’T work when the invocation code is on a WordPress page and I’m using Firefox.
So, anyone have any idea why it isn’t working? Thanks.
The topic ‘Problem with javascript generated link on Firefox.’ is closed to new replies.