List Info

Thread: Can someone help me w/ my javascript coding?




Can someone help me w/ my javascript coding?
country flaguser name
United States
2007-05-01 17:29:02

What am I doing wrong? I am Trying to create a cycling banner!!!

<script language=&quot;Javascript" type=";text/javascript";>
<;!-- Hide from old browsers
<p>&lt;img border=&quot;0" src="bannerad.gif" width=&quot;468" height=&quot;60"><a
href=&quot;http://www.bigmtn.com">;<img border=&quot;0" src="bannerad2.jpg"
width=&quot;554&quot;
height="66&quot;>&lt;/a>&lt;a href=";http://www.bridgerbowl.com&quot;><img border=&quot;0"
src=";bannerad3.jpg" width=&quot;554" height=&quot;68"></a></p&gt;
</head>
adImages = new
Array
("images/bannerad.gif&quot;,"images/bannerad2.jpg",&quot;images/bannerad3.jpg")
thisAd = 0
imgCt&#43;+ = adImages.length
function rotate() {
if (document.images) {
thisAd++
if (thisAd == imgCt) {
thisAd = 0
}
document.adBanner.src=adImages[thisAd]
setTimeout(&quot;rotate()", 3 * 1000)
}
}
// End hide script from old browsers -->
&lt;body onload=&quot;rotate()">
<img src="images/banner1.gif&quot; name=";adBanner&quot; alt="Ad Banner&quot;/>
&lt;/script&gt;

__._,_.___
.

__,_._,___
RE: Can someone help me w/ my javascript coding?
country flaguser name
United Kingdom
2007-05-08 05:08:40

Shanna - there are lots of problems in your script. Do you still need to fix
this, or is it working now?

Rob.

-----Original Message-----
From: 1stJavaScript%40yahoogroups.com">1stJavaScriptyahoogroups.com [mailto: 1stJavaScript%40yahoogroups.com">1stJavaScriptyahoogroups.com] On
Behalf Of Shanna
Sent: 01 May 2007 23:29
To: 1stJavaScript%40yahoogroups.com">1stJavaScriptyahoogroups.com
Subject: [1stJavaScript] Can someone help me w/ my javascript coding?

What am I doing wrong? I am Trying to create a cycling banner!!!

<script language=&quot;Javascript" type=";text/javascript";>
<;!-- Hide from old browsers
<p>&lt;img border=&quot;0" src="bannerad.gif" width=&quot;468" height=&quot;60"><a
href=&quot;http://www.bigmtn.com">;<img border=&quot;0" src="bannerad2.jpg"
width=&quot;554&quot;
height="66&quot;>&lt;/a>&lt;a href=";http://www.bridgerbowl.com&quot;><img border=&quot;0"
src=";bannerad3.jpg" width=&quot;554" height=&quot;68"></a></p&gt; </head&gt; adImages = new
Array
("images/bannerad.gif&quot;,"images/bannerad2.jpg",&quot;images/bannerad3.jpg")
thisAd = 0
imgCt&#43;+ = adImages.length
function rotate() {
if (document.images) {
thisAd++
if (thisAd == imgCt) {
thisAd = 0
}
document.adBanner.src=adImages[thisAd]
setTimeout(&quot;rotate()", 3 * 1000)
}
}
// End hide script from old browsers --> <body onload=&quot;rotate()"> <img
src="images/banner1.gif&quot; name=";adBanner&quot; alt="Ad Banner&quot;/> </script>

***********************************************************************************
Any opinions expressed in email are those of the individual and not necessarily those of the company. This email and any files transmitted with it are confidential and solely for the use of the intended recipient
or entity to who they are addressed. It may contain material protected by attorney-client privilege. If you are not the intended recipient, or a person responsible for delivering to the intended recipient, be advised that you have received this email in error and that any use is strictly prohibited.

Random House Group + 44 (0) 20 7840 8400
http://www.randomhouse.co.uk
http://www.booksattransworld.co.uk
http://www.kidsatrandomhouse.co.uk
Generic email address - enquiries%40randomhouse.co.uk">enquiriesrandomhouse.co.uk

Name & Registered Office:
THE RANDOM HOUSE GROUP LIMITED
20 VAUXHALL BRIDGE ROAD
LONDON
SW1V 2SA
Random House Group Ltd is registered in the United Kingdom with company No. 00954009, VAT number 102838980
***********************************************************************************

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )