Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old August 29th, 2008, 12:20 PM
Member
 
Join Date: Jun 2007
Posts: 32
Default How to show two news-scrolles in one page?

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]
Reply
  #2  
Old August 29th, 2008, 06:48 PM
FLEB's Avatar
Newbie
 
Join Date: Aug 2008
Posts: 24
Default

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.
Reply
  #3  
Old September 2nd, 2008, 05:49 PM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 12,728
Default

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

PS. moved to the JavaScript forum.
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles