yo,
i'm starting to $_GET an Heart Attack .
It's a SMALL problem with an marquee.
The thing is: i have a site where i use a marquee, the whole site is in index.php in wich i include other files as needed. When i click a link the marquee start's again at position "0" (of course).
So it's a little boring seeing it starting all over again.
I'm tired of reanding and searching. The best thing so far is setting scrollLeft.
<marquee name="test" id="test" scrollAmount="2" scrollLeft="<?php echo $_GET['pos'];?>">marquee text</marquee>
But this doesn't work, the marquee goes to the position desired, then right back to the begining.
After 15547898 beers i saw the light...
I could set scrollAmount to that desired value, at the first move the marquee goes to the desired position the set the scrollAmount to "2" again.
It should work.
But how do i make it work??? :s
something like this:
<script language="javascript">
pos(<?php echo $_GET['pos'];?>);
function pos(ya) {
if (test.scrollLeft < ya) {
test.scrollAmount = ya
}
// after the marquee moves set the scrollAmount back to 2
test.scrollAmount = 2;
//doesn't work... of course :s
}
</script>
If anyone can help me i would apreciate, untill then i'll keep drinking to find a solution