Jump to content

Alternative for a marquee


chanchelkumar

Recommended Posts

Hi all

Actually am working with a image slider.. in which image move in a marquee..

like

[move]Image1, image 2[/move]

 

all are dynamically..

and i tried to validate using W3 .. it shows me error on marquee.. is there any alternative for marquee...

 

Thanks in advance...

 

 

 

 

Link to comment
Share on other sites

You can use marquee if you wish, however to get it to work through the validator you would have to

dynamically add the marquee with javascript:

 

<script type="text/javascript">
<!--
window.onload = function()
{

marquee = document.createElement('div');
marquee.setAttribute('id', 'mymarquee');
marquee.innerHTML = '  <!-- INSERT YOUR MARQUEE MARKUP IN HERE -->';
document.getElementById('marquee-placeholder').appendChild( marquee );


}
//-->
</script>

 

Put some code <div id="marquee-placeholder"><!-- // marquee --></div> in your page and the above code would add a child to this

with the marquee content.

 

Using this type of method you can get code to validate right up to XHTML 1.0 (possible 1.1)

Link to comment
Share on other sites

christ - just mark your stuff as normal - this looks like a nice straight forward unordered list of images floated left so when javascript is off they display nicely...

 

then use JAVSCRIPT to fix the height of the unordered list and hide the overflow and then assign popsitions to each li which it will move either in a loop or better still a timed action...

 

content = markup, design/presentation = css, document effects (all the 'cool stuff') = javascript NOT proprietary markup that only works in IE - you'll be wantiong to use 'blink' next.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.