User:Vijay/Troubble Shooting: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
#'''Scrolling text that stops on mouse over, with out using JS.'''
==Scrolling text that stops on mouse over, without JS==
 
*I wanted to combine JS with PHP to scroll text that is fetched from MySQL through PHP,but unfortunately, i found it hard to put JS and PHP together in scroll...
*I wanted to combine JS with PHP to scroll text that is fetched from MySQL through PHP,but unfortunately, i found it hard to put JS and PHP together in scroll...
*Finally found a solution from some net forum...that suggested this simple marquee tag...
*Finally found a solution from some net forum...that suggested this simple marquee tag...

Revision as of 12:59, 4 February 2008

Scrolling text that stops on mouse over, without JS

  • I wanted to combine JS with PHP to scroll text that is fetched from MySQL through PHP,but unfortunately, i found it hard to put JS and PHP together in scroll...
  • Finally found a solution from some net forum...that suggested this simple marquee tag...

<marquee onmouseover="this.stop();" onmouseout="this.start();">
Text to scroll goes here.....
</marquee>

  • This works great in IE and FF, not sure about other browsers.
  • kudos to anonymous net users for the tip.