Go Back   Internet Business Forums > Design & Development

Reply
 
Thread Tools Display Modes
Old 22-11-2006, 02:21 AM   #1 (permalink)
Senior Member
 
Join Date: Nov 2006
Posts: 225
Default I need some javascript help (i think)

Hey guys, i decided that for my gaming site i want to have i row of 600pizels width * 80 height Of rotating Pictures of games- The pics are lined up and are moving right, and when clicking a specific image it takes you to a diffrent web page. DO you guys know where i can learn how to make that? do u know what i even mean by my description? can someone help me with that, i will throw in 10 BK $ Thanks !
roy77
roy77 is offline   Reply With Quote
Old 22-11-2006, 04:18 PM   #2 (permalink)
co-admin
 
army's Avatar
 
Join Date: Oct 2006
Location: Belgium
Posts: 666
Default Re: I need some javascript help (i think)

<marquee height="80" direction="right" scrolldelay="90" scrollamount="6" behavior="scroll" align="middle" loop="0">Text</marquee>

And you just replace the "Text" by your images, between <a> tags .
army is offline   Reply With Quote
Old 23-11-2006, 12:52 AM   #3 (permalink)
Senior Member
 
Join Date: Nov 2006
Posts: 225
Default Re: I need some javascript help (i think)

army thanks for the code man but im having a problem, Can you give me an example of how i should write my image in there, is it something like this for example:

<marquee height="80" direction="right" scrolldelay="90" scrollamount="6" behavior="scroll" align="middle" loop="0"><a>logo1.jpeg</a></marquee>
??? please help!!
thanks - roy77
roy77 is offline   Reply With Quote
Old 23-11-2006, 09:52 PM   #4 (permalink)
co-admin
 
army's Avatar
 
Join Date: Oct 2006
Location: Belgium
Posts: 666
Default Re: I need some javascript help (i think)

Quote:
Originally Posted by roy77 View Post
army thanks for the code man but im having a problem, Can you give me an example of how i should write my image in there, is it something like this for example:

<marquee height="80" direction="right" scrolldelay="90" scrollamount="6" behavior="scroll" align="middle" loop="0"><a>logo1.jpeg</a></marquee>
??? please help!!
thanks - roy77
Almost ...

[HTML]<marquee height="80" direction="right" scrolldelay="90" scrollamount="6" behavior="scroll" align="middle" loop="0"><a href="yoursite.com" target="_blank">logo1.jpeg</a></marquee>[/HTML]

I set the target to open in a new window . If you want it open in the same window, just change the "_blank" by "_self" .
army is offline   Reply With Quote
Old 24-11-2006, 12:30 AM   #5 (permalink)
Senior Member
 
Join Date: Nov 2006
Posts: 225
Default Re: I need some javascript help (i think)

k got it thanks! now here comes the more complicated version: in my gaming site i want to have rotating images of games (as you may know) and so i would like to make more than one image in my script - i want to have like 10-15 images, close together in a row moving from the left to righ - and than when the visitors click the image it links to the game page. as well (im not sure if this is java or flash) but when the mouse is over the moving images, if it could stop the rotation. If you can help me with that i will love u even more! peace
roy77
roy77 is offline   Reply With Quote
Old 24-11-2006, 07:59 PM   #6 (permalink)
co-admin
 
army's Avatar
 
Join Date: Oct 2006
Location: Belgium
Posts: 666
Default Re: I need some javascript help (i think)

It is something like this:

Note, the source code below doesn't work! Lol, at least, it doesn't do what it has to do . There is somewhere a fault, but I can't find it. Quite some time ago I wrote a JavaScript .

[html]<html>
<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function writeMarquee() {
var height = 80
var scrolldelay = 90
var scrollamount = 1
var loop = 0
document.write("<marquee height='+height+' direction='right' scrolldelay='+scrolldelay+' scrollamount='+scrollamount+' behavior='scroll' align='middle' loop='+loop+'><a href='yoursite.com' target='_blank'>logo1.jpeg</a></marquee>");
}
// End -->
</script>

</HEAD>



<BODY>


<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
document.write("<span onmouseove='scrollamount = 0' onmouseout='scrollamount = 1'>");
writeMarquee()
document.write("</span>");
// End -->
</script>
</body>
</html>[/html]
army is offline   Reply With Quote
Old 24-11-2006, 08:51 PM   #7 (permalink)
co-admin
 
army's Avatar
 
Join Date: Oct 2006
Location: Belgium
Posts: 666
Default Re: I need some javascript help (i think)

You also can try to combine it with PHP:

PHP Code:
<HTML>

<BODY>

<?php
global $speed 6;
?>

<marquee height='80' direction='right' scrolldelay='90' scrollamount='<?php $speed ?>' behavior='scroll' align='middle' loop='0'><a href='yoursite.com' target='_blank' onMouseOver='<?php $speed 0?>' onMouseOut='<?php $speed 6?>'>logo1.jpeg</a></marquee>

</BODY>

</HTML>
There could be faults in it... I didn't test it, and I wrote it in 2 minutes . So, don't shoot me if you get an error .
army is offline   Reply With Quote
Old 24-11-2006, 09:44 PM   #8 (permalink)
Senior Member
 
Join Date: Nov 2006
Posts: 225
Default Re: I need some javascript help (i think)

thanks - ill try it right now!
roy77
roy77 is offline   Reply With Quote
Old 24-11-2006, 10:31 PM   #9 (permalink)
co-admin
 
army's Avatar
 
Join Date: Oct 2006
Location: Belgium
Posts: 666
Default Re: I need some javascript help (i think)

Quote:
Originally Posted by roy77 View Post
thanks - ill try it right now!
roy77
Ok, that is good . I am now going to sleep, so, cu tomorrow .
army is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT +1. The time now is 08:08 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.