chanchelkumar Posted June 30, 2008 Share Posted June 30, 2008 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... Quote Link to comment https://forums.phpfreaks.com/topic/112561-alternative-for-a-marquee/ Share on other sites More sharing options...
MasterACE14 Posted June 30, 2008 Share Posted June 30, 2008 this isn't really a PHP question. However, this can be better accomplished using javascript. Checkout www.javascriptkit.com, they have marquee scripts there to 'copy and paste' Regards ACE Quote Link to comment https://forums.phpfreaks.com/topic/112561-alternative-for-a-marquee/#findComment-578057 Share on other sites More sharing options...
chanchelkumar Posted June 30, 2008 Author Share Posted June 30, 2008 But that is also marquee .. the marquee tag is not validate in W3 Validator I want the marquee effect with out using marquee .. Quote Link to comment https://forums.phpfreaks.com/topic/112561-alternative-for-a-marquee/#findComment-578066 Share on other sites More sharing options...
MasterACE14 Posted June 30, 2008 Share Posted June 30, 2008 I don't think it can be done lol. Marquee's are something the validator frowns on. Quote Link to comment https://forums.phpfreaks.com/topic/112561-alternative-for-a-marquee/#findComment-578068 Share on other sites More sharing options...
Siggles Posted June 30, 2008 Share Posted June 30, 2008 What about Flash? Brrer! - Montgomery Burns type shiver Quote Link to comment https://forums.phpfreaks.com/topic/112561-alternative-for-a-marquee/#findComment-578072 Share on other sites More sharing options...
chanchelkumar Posted June 30, 2008 Author Share Posted June 30, 2008 But i want that images from the database... that is dynamically.. am not much familiar with FLASH Quote Link to comment https://forums.phpfreaks.com/topic/112561-alternative-for-a-marquee/#findComment-578084 Share on other sites More sharing options...
haku Posted June 30, 2008 Share Posted June 30, 2008 There isn't a W3C compliant substitute for marquee. (X)HTML is supposed to be for content, and marquee isn't content - it's function (or presentation depending on your stance), which is why it's invalid. Quote Link to comment https://forums.phpfreaks.com/topic/112561-alternative-for-a-marquee/#findComment-578107 Share on other sites More sharing options...
MasterACE14 Posted June 30, 2008 Share Posted June 30, 2008 fair enough Quote Link to comment https://forums.phpfreaks.com/topic/112561-alternative-for-a-marquee/#findComment-578121 Share on other sites More sharing options...
chanchelkumar Posted June 30, 2008 Author Share Posted June 30, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/112561-alternative-for-a-marquee/#findComment-578125 Share on other sites More sharing options...
phpzone Posted June 30, 2008 Share Posted June 30, 2008 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) Quote Link to comment https://forums.phpfreaks.com/topic/112561-alternative-for-a-marquee/#findComment-578129 Share on other sites More sharing options...
haku Posted June 30, 2008 Share Posted June 30, 2008 Which makes sense - javascript provides action for the page, and marquee can be thought of as an action. Quote Link to comment https://forums.phpfreaks.com/topic/112561-alternative-for-a-marquee/#findComment-578319 Share on other sites More sharing options...
chanchelkumar Posted July 1, 2008 Author Share Posted July 1, 2008 Thanks phpzone!! But the code doesn't works as the marquee... Quote Link to comment https://forums.phpfreaks.com/topic/112561-alternative-for-a-marquee/#findComment-578795 Share on other sites More sharing options...
ToonMariner Posted July 2, 2008 Share Posted July 2, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/112561-alternative-for-a-marquee/#findComment-580493 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.