Are you getting it to scoll simply by using the
<marquee> element? Or is there an option in the script I'm missing?
First off, it's a jquery plugin. If you're not using jQuery (
and don't want to), then it might not be the choice for you.
Otherwise, basic usage (using your existing markup) would be something like:
HTML Code:
<!DOCTYPE html>
<head>
<script src="/path/to/your/jquery.js"></script>
<script src="/path/to/your/jquery.marquee.js"></script>
</head>
<body>
<marquee style="border:solid" bgcolor="#FFFFFF" direction="left" scrollamount="10" loop="2" width="90%">
<strong>marquee text goes here</strong>
</marquee>
<script>
$( "marquee" ).marquee();
/* that's all there is too it */
</script>
</body>
</html>
It does not.
As I said, this would be a good solution to your marquee problem, assuming you
don't need the ajax functionality (i.e., you
decided to use PHP to write the contents of the marquee).
If you want to use ajax to write the content of the marquee, then you'd need to use an ajax script -- though, this doesn't mean you couldn't use Remy's script to make the marquee
look and function better afterwards.
Bookmarks