FreewayTalk

7 replies to this thread. Most Recent

TomP

10 Mar 2010, 1:30 pm

Horizontal Text code to download

Maybe someone can use it to. Just download it and place it as a markup on your site. You can change the color of the body and the text, rezise the band and - off course - use your own text.

Have fun Tom

<script language="JavaScript1.2">

//Specify the marquee's width (in pixels)
var marqueewidth="800px"
//Specify the marquee's height
var marqueeheight="20px"
//Specify the marquee's marquee speed (larger is faster 1-10)
var marqueespeed=3//configure background color:
var marqueebgcolor="#FFFFFF"
//Pause marquee onMousever (0=no. 1=yes)?
var pauseit=1


//Specify the marquee's content (don't delete <nobr> tag)
//Keep all content on ONE line, and backslash any single quotations (ie: that's great):

var marqueecontent='<nobr style=color:#000041>Place text here</nobr>'

////NO NEED TO EDIT BELOW THIS LINE////////////
marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1) //slow speed down by 1 for NS
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marqueecontent+'</span>')

var actualwidth=” var cross_marquee, ns_marquee

function populate(){ if (iedom){ cross_marquee=document.getElementById? document.getElementById(“iemarquee”) : document.all.iemarquee cross_marquee.style.left=parseInt(marqueewidth)+8+”px” cross_marquee.innerHTML=marqueecontent actualwidth=document.all? temp.offsetWidth : document.getElementById(“temp”).offsetWidth } else if (document.layers){ ns_marquee=document.ns_marquee.document.ns_marquee2 ns_marquee.left=parseInt(marqueewidth)+8 ns_marquee.document.write(marqueecontent) ns_marquee.document.close() actualwidth=ns_marquee.document.width } lefttime=setInterval(“scrollmarquee()”,20) } window.onload=populate

function scrollmarquee(){ if (iedom){ if (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8)) cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+”px” else cross_marquee.style.left=parseInt(marqueewidth)+8+”px”

} else if (document.layers){ if (ns_marquee.left>(actualwidth*(-1)+8)) ns_marquee.left-=copyspeed else ns_marquee.left=parseInt(marqueewidth)+8 } }

if (iedom||document.layers){ with (document){ document.write(‘

’) if (iedom){ write(‘<div style=”position:relative;width:’+marqueewidth+’;height:’+marqueeheight+’;overflow:hidden”>’) write(‘<div style=”position:absolute;width:’+marqueewidth+’;height:’+marqueeheight+’;background-color:’+marqueebgcolor+’” onMouseover=”copyspeed=pausespeed” onMouseout=”copyspeed=marqueespeed”>’) write(‘<div id=”iemarquee” style=”position:absolute;left:0px;top:0px”></div>’) write(‘</div></div>’) } else if (document.layers){ write(‘<ilayer width=’+marqueewidth+’ height=’+marqueeheight+’ name=”ns_marquee” bgColor=’+marqueebgcolor+’>’) write(‘’) write(‘</ilayer>’) } document.write(‘

’) } } </script>

quote

TomP

10 Mar 2010, 2:01 pm

off course copy from script to script, even if it looks strange…

quote

DeltaDave

10 Mar 2010, 9:14 pm

Hi Tom

What exactly are you sharing with us?

David

quote

Glasgow, Scotland

iMac 27 Snow and Pro 5.5

TomP

11 Mar 2010, 6:29 am

I’am sharing this…

http://piranha-ag.ch/test.php

quote

Gray Owl

11 Mar 2010, 7:53 am

Hi Tom

Just one question. Where is the download??

Regards

quote

One Man with out his Harley

TomP

11 Mar 2010, 8:20 am

I mad a downloadlink on the page

quote

TomP

11 Mar 2010, 8:38 am

made not mad :O) (Can someone please ad a thread edit button?)

quote

Back to Top

waltd

11 Mar 2010, 12:42 pm

This is a mailing list. You can’t edit an e-mail after you’ve sent it, though countless senators would like to try…

Walter

On Mar 11, 2010, at 4:37 AM, TomP wrote:

made not mad :O) (Can someone please ad a thread edit button?)

quote

Freeway user since 1997

http://www.walterdavisstudio.com

FreeCounter