Jump to content

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
https://forums.phpfreaks.com/topic/112561-alternative-for-a-marquee/
Share on other sites

Error  Line 177, Column 15: there is no attribute "class".

 

<marquee class="newstyle">

 

Line 177, Column 25: element "marquee" undefined.

 

<marquee class="newstyle">

 

 

This is the two errors am getting through the validator

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)

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.

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.