Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Client wants a marquee effect (I know...ewww...)

    Haha. Hey. all.

    This is what I made for him: http://www.selfdefensetrainingcentersofamerica.com/ but as you can see, it's pretty bad. I was trying to get the 2 images to pre-load, but Firefox shows them both before the marqueeing starts.
    I'm not much of a "dynamic content" guy, so I'm kinda lost here.

    Any ideas of how I can get the effect my client wants by using a script, and not Flash (I really hate Flash)?

    Thanks in advance.

  • #2
    Regular Coder
    Join Date
    Mar 2009
    Location
    Portland Oregon
    Posts
    690
    Thanks
    44
    Thanked 63 Times in 62 Posts
    you could set them to hidden until just before you use them

    .style.visibility='hidden'
    then switch to 'visible' once you begin the marquee

  • #3
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry, I should have revealed my cluelessness in coding, I'm just a copy and paster

    What would the script be to make that happen?

    Thanks

  • #4
    Regular Coder
    Join Date
    Mar 2009
    Location
    Portland Oregon
    Posts
    690
    Thanks
    44
    Thanked 63 Times in 62 Posts
    Quote Originally Posted by Geezer D View Post
    Sorry, I should have revealed my cluelessness in coding, I'm just a copy and paster

    What would the script be to make that happen?

    Thanks
    If you still need help, go ahead and save this page. it has a function
    http://h1.ripway.com/stirfry/javascr...thfriends.html

  • #5
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hmm... no help there. I'm not looking for a mouseover event or an onclick event.
    I just need the 2 images in the marquee to load in, then once they do, the marquee starts. No interaction from the user at all.

  • #6
    New Coder
    Join Date
    Mar 2009
    Posts
    29
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Is this the kind of code you are looking for? Automatic scrolling from left to right or vice versa.
    Code:
    <marquee  behavior="scroll" direction="right" scrollamount="4" onmouseover="this.scrollAmount=3" onmouseout="this.scrollAmount=4"> 
    <a href="1.html">
    <img src="image/1.jpg" width="120" height="130" /></a>
    <a href="2.html">
    <img src="image/2.jpg" width="120" height="130" /></a>
    <a href="3.html">
    <img src="image/3.jpg" width="120" height="130" /></a>
    <a href="4.html">
    <img src="image/4.jpg" width="120" height="130" /></a>
    <a href="5.html">
    <img src="image/5.jpg" width="120" height="130" /></a>
    <a href="6.html">
    <img src="image/6.jpg" width="120" height="130" /></a></marquee>

  • #7
    Regular Coder
    Join Date
    Mar 2009
    Location
    Portland Oregon
    Posts
    690
    Thanks
    44
    Thanked 63 Times in 62 Posts
    Quote Originally Posted by Geezer D View Post
    Hmm... no help there. I'm not looking for a mouseover event or an onclick event.
    I just need the 2 images in the marquee to load in, then once they do, the marquee starts. No interaction from the user at all.
    you asked for a way to not have the images show up before the scroll starts.
    I showed you how to change visibility.

    what are you looking for?
    when you load your images(your preload function) you need to keep them hidden. After preload is over, you set the images to visible. It's not that complicated

    make a function and use getelementById().style.visibility

  • #8
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Apparently TinyScript, you can code but not read. You keep giving me half an answer, so no answer from you is preferable, thanks.

    Once more, with feeling... actually, **** it, I'll go to a better forum.

  • #9
    Regular Coder
    Join Date
    Mar 2009
    Location
    Portland Oregon
    Posts
    690
    Thanks
    44
    Thanked 63 Times in 62 Posts
    Quote Originally Posted by Geezer D View Post
    Apparently TinyScript, you can code but not read. You keep giving me half an answer, so no answer from you is preferable, thanks.

    Once more, with feeling... actually, **** it, I'll go to a better forum.
    best of luck. sorry the answers weren't good enough. did you you expect me to code your solution?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •