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 5 of 5

Thread: marquee tag

  1. #1
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    marquee tag

    Hi all, new here.

    I made a small web page which included a marquee of scrolling images. It worked fine in firefox but when I loaded the page in IE the marquee would not work.

    Is there any special coding I need to add to make it work in IE. If not does someone know of a script I could use instead.

    here's the tag, I have more than 75 small jpg images in the marquee. It scrolls from right to left.
    <marquee width= 550px>
    <a href="1.htm" target="_blank"><img height=100px src="thumbs/b30t.jpg">

    Thanks.

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello infamousmark,
    You don't really give us enough information here. From the snippet of code you've posted it looks like you don't have a DocType, you don't close either your marquee tag or your anchor... we can't guess what else is wrong either.

    A link to the test site is always best.

    You could also write a small test.html that reproduces the issue and post it here using the code tags, &#91;code&#93;&#91;/code&#93; - available with the # button in the post edit window.This will wrap your code in a scroll box which greatly helps the readability of your post.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    thanks excavator for your reply.

    I just assumed you would assume I closed my tags.

    I'll provide the link to the page, the reason I didn't at first was that I didn't want to be ridiculed for using tables and a marquee. (I know they're things of the past). Still learning here. It's a female friend who had a bunch of Christmas stuff for sale and wanted me to post them somewhere. Php would've been better at this (you'll see what I mean) but I didn't have time to learn what I needed and figure out how to format the results.

    http://www.dept56.hostzi.com/index.htm (the links are not set up yet)

    There's a lot of images in the marquee, I was just doing a test and left it that way. Maybe IE would respond better if there was less. I didn't try.

    I was basically looking for something (script maybe) which would do the same thing (or equivalent) since she has already seen it and likes it.

    Let me know. Mark

  • #4
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,639
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Here are a few JavaScript Marquee scripts that will work in all browsers and not just in the browser that has the <marquee> proprietary tag.

    Continuous Image Marquee - http://javascript.about.com/library/blcmarquee1.htm
    Continuous Image Marquee With Start/Stop Button - http://javascript.about.com/library/blcmarquee5.htm
    Continuous Text Marquee - http://javascript.about.com/library/blctmarquee1.htm
    Continuous Text Marquee With Start/Stop Button - http://javascript.about.com/library/blctmarquee5.htm
    Continuous Image Vertical Scroller - http://javascript.about.com/library/blcvert.htm
    Continuous Text Vertical Scroller With Start/Stop Button - http://javascript.about.com/library/blctvert1.htm
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • Users who have thanked felgall for this post:

    infamousmark (01-26-2012)

  • #5
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks felgall, that should do it. The first two scripts require that the images be the same size, that might be a problem for me right now since the images are all different in size, but I'll just shorten the list and resize the best ones to fit.


  •  

    Posting Permissions

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