Connecting Tech Pros Worldwide Forums | Help | Site Map

How to show two news-scrollers in one page?

Member
 
Join Date: Jun 2007
Posts: 32
#1: Aug 29 '08
If i put only one of them it's work good but when I put both of them together there show an error message.

please hlep me, How to put both of them together ...

[HTML]<html><head><title></title></head><body bgcolor="#FFFFFF"><div id="disspageie" style="position:absolute;background:#FFFFFF;width: 160; height:400;left:0; top:0;margin:0px;overflow:hidden;padding:0px;borde r-style:solid; border-width:1px; border-color:#5C5C5C;"><div id="spageie" style="position:absolute; width:160; height:400; left:0; top:0; border-width:0px; overflow:hidden;clip:rect(4 160 395 0);"></div></div><script language="javascript">var OPB=false;uagent = window.navigator.userAgent.toLowerCase();OPB=(uage nt.indexOf('opera') != -1)?true:false;if((document.all)&&(OPB==false)){doc ument.write("<scr"+"ipt language=\"javascript\" sr"+"c=\"scroller_barcoletanewsticie.js\"></scr"+"ipt>");}else{document.write("<div id=\"spagensbrd\" style=\"position:absolute; width:158; height:398; left:0; top:0; border-style:solid; border-width:1px; border-color:#5C5C5C;overflow:hidden;\"><div id=\"spagens\" style=\"position:absolute; width:158; height:398; left:0; top:0; border-width:0px; overflow:hidden;clip:rect(4 160 395 0);\"></div></div>");document.write("<scr"+"ipt language=\"javascript\" sr"+"c=\"scroller_barcoletanewsticns6.js\"></scr"+"ipt>");}</script></body></html>
<html><head><title></title></head><body bgcolor="#FFFFFF"><div id="disspageie" style="position:absolute;background:#FFFFFF;width: 160; height:400;left:0; top:0;margin:0px;overflow:hidden;padding:0px;borde r-style:solid; border-width:1px; border-color:#5C5C5C;"><div id="spageie" style="position:absolute; width:160; height:400; left:0; top:0; border-width:0px; overflow:hidden;clip:rect(4 160 395 0);"></div></div><script language="javascript">var OPB=false;uagent = window.navigator.userAgent.toLowerCase();OPB=(uage nt.indexOf('opera') != -1)?true:false;if((document.all)&&(OPB==false)){doc ument.write("<scr"+"ipt language=\"javascript\" sr"+"c=\"scroller_poezinewsticie.js\"></scr"+"ipt>");}else{document.write("<div id=\"spagensbrd\" style=\"position:absolute; width:158; height:398; left:0; top:0; border-style:solid; border-width:1px; border-color:#5C5C5C;overflow:hidden;\"><div id=\"spagens\" style=\"position:absolute; width:158; height:398; left:0; top:0; border-width:0px; overflow:hidden;clip:rect(4 160 395 0);\"></div></div>");document.write("<scr"+"ipt language=\"javascript\" sr"+"c=\"scroller_poezinewsticns6.js\"></scr"+"ipt>");}</script></body></html>[/HTML]

FLEB's Avatar
Newbie
 
Join Date: Aug 2008
Posts: 30
#2: Aug 29 '08

re: How to show two news-scrollers in one page?


I'm assuming you're using a third-party news scroller script. You would probably have better luck looking into that script specifically-- searching for help on it, or finding information from the developers.

My first guess is that the script is not designed for multiple instances by default. There may be some extra steps or parameters that will allow you to have multiple scrollers. Or, you may just have to find a different news scroller that supports multiple instances.
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#3: Sep 2 '08

re: How to show two news-scrollers in one page?


If you're seeing an error message, it's a JavaScript problem. What's the message?

PS. moved to the JavaScript forum.
Reply


Similar JavaScript / Ajax / DHTML bytes