Hey Everyone,

Thanks for taking the time to read this and help me with my problem. I grabbed this code from Dynamic Drive. I'm trying to style it better. I've had some success, but some thing are giving me a run for my money since i don't know JS.

  1. I would actually like the text to scroll from right to left instead of up and down
  2. The only way I can figure out how ot get the quotes inside by scroller to look like quotes is to add an insane amount of spaces (&nbps;). Even still I'm not getting the precise results I am looking for aon all of them.

Here is the page I am working on.

Again, thanks for your time.

Member Avatar for stbuchok

1.

//change this
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"


//to this
this.visiblediv.style.left=parseInt(this.visiblediv.style.left)-5+"px"
this.hiddendiv.style.left=parseInt(this.hiddendiv.style.left)-5+"px"

//change this
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"

//to this
div1.style.left=this.visibledivtop+"px"
div2.style.left=Math.max(div1.parentNode.offsetWidth, div1.offsetWidth)+"px"

Of course this is just a guess and I haven't in any way tested it and I could be missing a few things, but basically any where that looks like it is doing stuff with height you need to change to width and any where that mentions top you need to replace with left.

Member Avatar for stbuchok

2. use css

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.