Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: help me for Netscape 6


Message #1 by "swat" <swati@m...> on Tue, 26 Nov 2002 14:03:51 +0530
Greg,
I thnk before answering do some R&D....plz
By the Way ...
innerHTML works both in IE 5.5  {5}& Netscape 6.0 onwards
 
 Greg Griffiths <greg2@s...> wrote:I think that some of you references to innerHTML etc are only valid on IE 
and IE related browsers.

At 13:52 27/11/02 +0530, you wrote:

> hello pls reply to this query...
>
> I wrote this code fo Scrolling Vertical Marquee..
> but its not working in Netscape 6+
>
> Can anybody help me for this..what changes I have to make so
> that it will work..
>
> reply asap...
>
> swati
> >
> >
> >
> > file://Specify the marquee's width (in pixels)
> > var marqueewidth=200
> > file://Specify the marquee's height
> > var marqueeheight=150
> > file://Specify the marquee's marquee speed (larger is faster 1-10)
> > var marqueespeed=2
> > file://Pause marquee onMousever (0=no. 1=yes)?
> > var pauseit=1
> > file://Specify the marquee's content
> > file://Keep all content on ONE line, and backslash any single quotations
>(ie: that\'s great):
> >
> > var marqueecontent='Thank you for visiting >href="http://www.dynamicdrive.com">Dynamic Drive.
If you find this
>script useful, please consider linking to us by >href="../link.htm">clicking here.
Visit our partner >href="http://javascriptkit.com">JavaScript Kit for JavaScript
>tutorials.'
> >
> >
> > ////NO NEED TO EDIT BELOW THIS LINE////////////
> >
> > marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1)
>file://slow speed down by 1 for NS
> > var copyspeed=marqueespeed
> > var pausespeed=(pauseit==0)? copyspeed: 0
> > var iedom=document.all||document.getElementById
> > var actualheight=''
> > var cross_marquee, ns_marquee
> >
> > function populate(){
> > if (iedom){
> > cross_marquee=document.getElementById?
>document.getElementById("iemarquee") : document.all.iemarquee
> > cross_marquee.style.top=marqueeheight+8
> > cross_marquee.innerHTML=marqueecontent
> > actualheight=cross_marquee.offsetHeight
> > }
> > else if (document.layers){
> > ns_marquee=document.ns_marquee.document.ns_marquee2
> > ns_marquee.top=marqueeheight+8
> > ns_marquee.document.write(marqueecontent)
> > ns_marquee.document.close()
> > actualheight=ns_marquee.document.height
> > }
> > lefttime=setInterval("scrollmarquee()",20)
> > }
> > window.onload=populate
> >
> > function scrollmarquee(){
> >
> > if (iedom){
> > if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8))
> > cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed
> > else
> > cross_marquee.style.top=marqueeheight+8
> > }
> > else if (document.layers){
> > if (ns_marquee.top>(actualheight*(-1)+8))
> > ns_marquee.top-=copyspeed
> > else
> > ns_marquee.top=marqueeheight+8
> > }
> > }
> >
> > if (iedom||document.layers){
> > with (document){
> > if (iedom){
> > write('>style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';ove
>rflow:hidden" onMouseover="copyspeed=pausespeed"
>onMouseout="copyspeed=marqueespeed">')
> > write('>style="position:absolute;left:0;top:0;width:100%;">')
> > write('')
> > }
> > else if (document.layers){
> > write('>name="ns_marquee">')
> > write('>height='+marqueeheight+' left=0 top=0 onMouseover="copyspeed=pausespeed"
>onMouseout="copyspeed=marqueespeed">')
> > write('')
> > }
> > }
> > }
> >  
> >
> >
> > *********************************************
> > Great Love And Great Achievements
> > Involve Great Risk
> > *********************************************
> >
> >
> >
> >
>
>
>






---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

  Return to Index