PDA

View Full Version : Affiliate Help



souljaa
07-02-2007, 08:17 PM
Hey, sorry for bringing this topic back, lol, but remember last time I had the code again?

echo '
<div id="affiliate" style="text-align: center;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">
<marquee behavior="scroll" direction="left" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width="100%"' : '', '>
<a href="http://www.google.com" target="_blank"><img src="http://images.google.com/intl/en_ALL/images/google_sm.gif" /></a>
<a href="http://www.yahoo.com" target="_blank"><img src="http://us.i1.yimg.com/us.yimg.com/i/yahoo.gif" /></a><br />
</marquee>
</div>';
What would be the code to BOX it?
And what would be the code to make it stop or slow down again?
Thanks once again :).
Souljaa

souljaa
07-02-2007, 08:22 PM
Okay, well I got the BOX, now I just need the scroll over stop thingy :P.

EDIT*****Okay, I played around more with the codes lol, and I finally got it ;).

Thanks!
Souljaa

EDIT*******Okay, I have a problem again, it doesn't appear in all the browers, here's the code,

echo '<div class="protablo2"><div class="protablo1">
<div id="affiliate" style="text-align: center;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie5'] ? ' width: 100%;' : '', '">
<marquee direction="left" onmouseover="this.stop()" onmouseout="this.start()" scrollamount="5" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie5'] ? ' width="100%"' : '', '>
As you can see, it says ['browser']['is_ie5'], what do I do so it would show up in all browers?

And can you please let me know if you see it in your browser..and what browser you're using.
Thanks
Souljaa

Thor Erik
08-22-2007, 11:27 AM
remove this part:


', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie5'] ? '

and:

' : '', '
after the width decleration
remember it includes the last ' in the first part of the string and the first ' of the seccond ;)

souljaa
08-22-2007, 12:37 PM
Alright, thanks, I'll try it out :).
Thanks ;).