It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

scrolling ads

scrolling ads

Postby colenzo on Fri Sep 21, 2007 5:47 am

Guys I am a new guy here, I hope you can help me on this
because I want to have a scrolling images in my website but I don't know how to start?

I know a little of javascript, Please help me just how can I make it my images move.


Thanks in advance
colenzo
 
Posts: 2
Joined: Fri Sep 21, 2007 5:41 am
Location: saudi arabia

Postby matt_raleigh on Fri Sep 21, 2007 2:39 pm

do you want something like an image rotator?(changes images every few seconds)
if so i have the script for one i'll give to you if you like
User avatar
matt_raleigh
 
Posts: 15
Joined: Thu Sep 20, 2007 6:45 pm

Postby knifeinback on Sat Sep 22, 2007 2:49 am

like images that move around the page?
you can do that in html.
User avatar
knifeinback
100+ Club
 
Posts: 136
Joined: Fri Jul 27, 2007 10:41 am
Location: 4170: Brisbane

Postby colenzo on Fri Oct 05, 2007 8:09 am

[quote="matt_raleigh"]do you want something like an image rotator?(changes images every few seconds)
if so i have the script for one i'll give to you if you like[/quote]

thanks MATT....

but I need something of a scroller... scrolling images across my page,
effect that is more like of a marquee.... but Initially there are few images loaded.
colenzo
 
Posts: 2
Joined: Fri Sep 21, 2007 5:41 am
Location: saudi arabia

Postby matt_raleigh on Fri Oct 05, 2007 11:47 am

have a look at this page www.dynamicdrive.com/dynamicindex4/
you might be able to use something here.

good luck
User avatar
matt_raleigh
 
Posts: 15
Joined: Thu Sep 20, 2007 6:45 pm

Postby knifeinback on Fri Oct 05, 2007 2:34 pm

if you just want images to scroll.
You'll need to use a marquee.
and then if you want them to stop on mouseover so someone can make the image/text stop and look at it; you'd be looking at something like:
onMouseover(marquee="false")

or something, sorry, i'm crap with JS.

marquee code:
Code: Select all
<marquee direction="left" behavior="scroll" scrollamount="5" >content</marquee>


to break it down:
direction: up/down/left/right - what direction the content moves in

behavoiur: scroll/bounce - how the content moves

scrollammount: 1-infinity - how fast the content moves. 1- slowest.


ofcourse, you can always use css and assign a class to the marquee and then just have something like:
Code: Select all
.ads{
direction: left;
behaviour: scroll;
scrollammount: 5;
+normal css
}

and
Code: Select all
<marquee class="ads">content</marquee>



sorry I can't help with the onMouseover thing. someone else should be able to though.
User avatar
knifeinback
100+ Club
 
Posts: 136
Joined: Fri Jul 27, 2007 10:41 am
Location: 4170: Brisbane


Who is online

Users browsing this forum: No registered users and 3 guests