Forum Moderators: open
http://javascript.about.com/library/blscroll.htm But I Can't Make It Work...
I Also Wish to put ADS On the Scroller ad.
Please Help me At This...
So If i have this HTML code (Empty) What do I have to put on <head> And on <body> tag?
<html>
<head></head>
<body>
</body>
</html>
Thank you All in Advence!
instructions of how to place scrolling add in to your page is very clear, but let me try it again.
1.create CSS file called scroll.css and put this code in the file
#mainAd{border:solid 1px #666666; width:220px;
background-color:#ffccff;padding:2px; position:absolute;
left:0px; top:300px; z-index:999;}
2. place this code between <head> here </head>
<script src="scroll.js" language="JavaScript"
type="text/javascript">
</script>
<link rel="stylesheet" href="scroll.css" type="text/css" />
3.place this code anywhere in your page before closing tag of the body </body>
.<script language="JavaScript" type="text/javascript">
displayAd('<div align="left"><b>The text for your ad goes
continued from previous line here.<br />Do you think your visitors will
continued from previous line notice this?</b></div>',10);
</script>
and lastly welcome to webmasterworld forum and respect TOS.
Mohamed
<script src="scroll.js" language="JavaScript"
type="text/javascript">
</script>
<script language="JavaScript" type="text/javascript">
The language attribute is depreciated, so you should leave that part out.
displayAd('<div align="left"><b>The text for your ad goes
continued from previous line here.<br />Do you think your visitors will
continued from previous line notice this?</b></div>',10);
The /'s in the example above should be escaped. As in:
displayAd('<div align="left"><b>The text for your ad goes
continued from previous line here.<br \/>Do you think your visitors will
continued from previous line notice this?<\/b><\/div>',10);
Also, that's using the <b></b> element, which is not depreciated, but it's use is discouraged in favor of style sheets [w3.org].