homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

Ad not rotating or showing "alt" in Netscape 7.1
ss include and CSS Newbie

10+ Year Member

Msg#: 2920 posted 4:40 pm on Feb 16, 2004 (gmt 0)

<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]



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

Msg#: 2920 posted 4:48 pm on Feb 16, 2004 (gmt 0)

Does your page validate?


10+ Year Member

Msg#: 2920 posted 5:14 pm on Feb 16, 2004 (gmt 0)

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!


10+ Year Member

Msg#: 2920 posted 6:44 pm on Feb 16, 2004 (gmt 0)

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?


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

Msg#: 2920 posted 7:10 pm on Feb 16, 2004 (gmt 0)

What it means is:

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

...and it will validate


10+ Year Member

Msg#: 2920 posted 7:23 pm on Feb 16, 2004 (gmt 0)

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.



10+ Year Member

Msg#: 2920 posted 7:29 pm on Feb 16, 2004 (gmt 0)

<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.


10+ Year Member

Msg#: 2920 posted 1:18 am on Feb 17, 2004 (gmt 0)

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?


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved