Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

Ad not rotating or showing "alt" in Netscape 7.1

ss include and CSS Newbie



4:40 pm on Feb 16, 2004 (gmt 0)

10+ Year Member

<div id="navBar">
<!--#include virtual="/acreate/main_templates/navbar_right.htm" -->

The /navbar_right.htm is the ss include that displays to the right of the page and within it is the rotating ad code:

<div align="center"><a href="http://www.example.com/cgi-bin/adjuggler.cgi?img_click=/racer_profiles_sky&multiad=2" target="_blank"><img src="http://www.example.com/cgi-bin/adjuggler.cgi?img_only=/racer_profiles_sky&multiad=2" alt="Please Support Our SPONSORS!" border=0 ></a>

It displays fine with IE but in Netscape 7.1 IT WILL NOT ROTATE THE ADS OR LINK PROPERLY OR READ THE "alt" MESSAGE.

I'm an amatuer unfortunately with a Frankenstein site to deal with. Any help on this one would be greatly appreciated!

[edited by: tedster at 5:46 pm (utc) on Feb. 16, 2004]
[edit reason] use example.com [/edit]


4:48 pm on Feb 16, 2004 (gmt 0)

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

Does your page validate?


5:14 pm on Feb 16, 2004 (gmt 0)

10+ Year Member

I'm a window contractor using Dreamweaver 2004MX. I don't have any basics to go back to.

I have found the WC.org site's validator and see that it is a wonderful resource. I have like..... 12 errors and the multi ad uses the & which I think they suggest substituting &amp for the &.....

I'll get to work on cleaning up the code THANKS!


6:44 pm on Feb 16, 2004 (gmt 0)

10+ Year Member

I'm trying to validate this code:

....er.cgi?img_click=/racer_profiles_sky&multiad=2" target="_blank"><img src="htt....

The validator points to the &m and the = sign in &multiad=2"

It gives me this "explanation":

“unknown entity ‘FOO’”
The validator has found an entity (something like &this;) that it doesn't recognize. There are a few possibilities:

A reference to a URI that uses & as a separator between parameters, such as "http://example.org/prog?x=1&y=2".

To solve this problem, simply replace all the &'s in attribute values with &amp; (user agents will convert them back before following the links.)

Another way to get around this problem is for the author of the CGI program to allow a different value to be used between arguments, like ';' or '¦', which would allow the link to be coded as e.g. <a href="http://example.org/prog?x=1;y=2">

An unterminated entity; for instance, this&ampthat for "this&that", which the validator (correctly) interprets as a request for the entity &ampthat;. Technically, any non-alphanumeric character (such as a space) will suffice to terminate the entity, but some browsers get this wrong; the safest thing to do is to terminate all entities with a semicolon, turning our example into this&amp;that.
The entity &quot; in conjunction with the HTML 3.2 DOCTYPE. This entity was accidentally omitted from the most recent version of the HTML 3.2 DTD. You should be able to ignore this error safely, though if you wish, you can replace &quot; with the equivalent character entity &#34;.

I replaced the & with &amp but have no idea what to do with the =2

Is there a simple fix?


7:10 pm on Feb 16, 2004 (gmt 0)

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

What it means is:

Change: &multiad=2
to: &amp;multiad=2

...and it will validate


7:23 pm on Feb 16, 2004 (gmt 0)

10+ Year Member

The other issue -- nn7.1 not displaying the "alt" attribute -- can be fixed by adding a reduntant "title" attribute. Standards compliant browsers display the "title" as a tool-tip and alt-text as an image replacement if the image doesn't load. Internet explorer also displays the "alt" as a tool-tip in the abscence of a title attribute.



7:29 pm on Feb 16, 2004 (gmt 0)

10+ Year Member

<div align="center"><a href="http://www.example.com/cgi-bin/adjuggler.cgi?img_click=/racer_profiles_sky&amp;multiad=2" target="_blank"><img src="http://www.example.com/cgi-bin/adjuggler.cgi?img_only=/racer_profiles_sky&amp;multiad=2" alt="Ad" title="Please Support Our SPONSORS!" border="0"></a></div>

That should take care of your validation and tool tip problems.


1:18 am on Feb 17, 2004 (gmt 0)

10+ Year Member

I tryed numerous times to make the cgi code work but it just wouldn't so I had the ad program generate java with no cgi cache - and carefully added the ALT advice and _blank target code suggestions from this forum and it works like a champ in Net 7.1

<div align="center"><script language="JavaScript">
var r=Math.random().toString().substr(2);
document.write('<a href="http://www.example.com/cgi-bin/adjuggler.cgi?img_click=/racer_profiles_sky&multiad=1&nocache='+r+'" target="_blank"><img border=0 src="http://www.example.com/cgi-bin/adjuggler.cgi?img_only=/racer_profiles_sky&multiad=1&nocache='+r+'" alt="Ad" title="Please Support Our SPONSORS!""></a>');

Now my question is will the java be rejected by the majority of browsers for security reasons or is that about the same percentage as cgi?



Featured Threads

Hot Threads This Week

Hot Threads This Month