I have a script that works.
Code:<script type="text/javascript"> var imgs1 = new Array("http://mysite.com/upload/2485.jpg","http://mysite.com/upload/3282.jpg"); var lnks1 = new Array("http://mysite.com/index.pl?session_key=&search_and_display_db_button=on&db_id=2485&query=retrieval","http://mysite.com/index.pl?session_key=&search_and_display_db_button=on&db_id=3282&query=retrieval"); var alt1 = new Array("3 bedroom 1 bath on 3.5 acres $69,000.00 Price Reduced!"," 2 bed/1 bath House 450/mo 350/dep--will do Section 8"); var imgsa = new Array("3 bedroom 1 bath on 3.5 acres \$69,000.00 <font color=#ff0000 size=3><b><i>Price Reduced!</i></b></font>","2 bed/1 bath House 450/mo 350/dep--will do Section 8"); var currentAd1 = 0; var imgCt1 = 2; function cycle1() { if (currentAd1 == imgCt1) { currentAd1 = 0; } var banner1 = document.getElementById('adBanner1'); var banner11 = document.getElementById('adBanner11'); var link1 = document.getElementById('adLink1'); banner1.src=imgs1[currentAd1] banner1.alt=alt1[currentAd1] document.getElementById('adLink1').href=lnks1[currentAd1] document.getElementById('adLinka').innerHTML = imgsa[currentAd1]; currentAd1++; } window.setInterval("cycle1()",5000); </script> <b><a style="font-size:16px;color:#000080;font-family:MS SANS SERIF;"" id="adLinka" target="_top">3 bedroom 1 bath on 3.5 acres \$69,000.00 <font color=#ff0000 size=3><b><i>Price Reduced!</i></b></font></a> </b><br> <a href="http://mysite.com/index.pl?session_key=&search_and_display_db_button=on&db_id=2485&query=retrieval"" id="adLink1" target="_top"> <img src="http://mysite.com/upload/2485.jpg" id="adBanner1" border="0" width="120" height="90"></a>
i am trying to change so that I have a hover over with photo it works on 1st banner but has same photo on 2nd banner thanks for the help
here is what I have
Code:<script type="text/javascript"> var imgs1 = new Array("http://mysite.com/upload/2485.jpg","http://mysite.com/upload/3282.jpg"); var lnks1 = new Array("http://mysite.com/index.pl?session_key=&search_and_display_db_button=on&db_id=2485&query=retrieval","http://mysite.com/index.pl?session_key=&search_and_display_db_button=on&db_id=3282&query=retrieval"); var alt1 = new Array("3 bedroom 1 bath on 3.5 acres $69,000.00 Price Reduced!"," 2 bed/1 bath House 450/mo 350/dep--will do Section 8"); var imgsa = new Array("3 bedroom 1 bath on 3.5 acres \$69,000.00 <font color=#ff0000 size=3><b><i>Price Reduced!</i></b></font>","2 bed/1 bath House 450/mo 350/dep--will do Section 8"); var currentAd1 = 0; var imgCt1 = 2; function cycle1() { if (currentAd1 == imgCt1) { currentAd1 = 0; } var banner1 = document.getElementById('adBanner1'); var banner11 = document.getElementById('adBanner11'); var link1 = document.getElementById('adLink1'); banner1.src=imgs1[currentAd1] banner1.alt=alt1[currentAd1] document.getElementById('adLink1').href=lnks1[currentAd1] document.getElementById('adLinka').innerHTML = imgsa[currentAd1]; currentAd1++; } window.setInterval("cycle1()",5000); </script> <b><a style="font-size:16px;color:#000080;font-family:MS SANS SERIF;"" id="adLinka" target="_top">3 bedroom 1 bath on 3.5 acres \$69,000.00 <font color=#ff0000 size=3><b><i>Price Reduced!</i></b></font></a> </b><br> <a href="http://mysite.com/index.pl?session_key=&search_and_display_db_button=on&db_id=2485&query=retrieval" id="adLink1" target="_top" onmouseover="Tip('<img src="http://mysite.com/upload/2485.jpg" id="adBanner1" border="0" width="120" height="90">')" onmouseout="UnTip()" id="adBanner1"> <img src="http://mysite.com/upload/2485.jpg" id="adBanner1" border="0" width="120" height="90"></a>




Reply With Quote
Bookmarks