home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 2732
Discussions: 186,607, Posts: 2,227,060, Members: 230,243
Free Scan: Update Your PC's Outdated Drivers to Optimize Performance
Old August 10th, 2008, 01:46 AM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Aug 2008
Posts: 1
Image Changing With Javascript?

Hi, I'm new to javascript and I can't seem to find a code for this...

I'm wanting to have a image that will change to another image every few seconds using javascript.

I found plenty of mouseover codes but none where the image just changes on its on.

Stewee is offline   Reply With Quote
TechIMO.com Ads - Login or register for less ads.
How many errors does your computer have?

You no longer need to guess! This free stability scan and registry cleaner download will give you a complete diagnosis of your Windows registry, identifying errors and conflicts.

FREE instant scan


Guest, Register Free! to remove this ad and get your tech support questions answered in minutes!
Old August 13th, 2008, 05:05 PM     #2 (permalink)
Member
 
Join Date: May 2003
Posts: 256
Send a message via AIM to rickytim
Site I have used from time to time
JavaScript Slideshow Wizard by BarelyFitz

rickytim is online now   Reply With Quote
Old September 2nd, 2008, 02:23 AM     #3 (permalink)
Senior Member
 
Join Date: May 2003
Location: Aus, Gold Coast :)
Posts: 793
Send a message via ICQ to exally
Mootools i have found have a wide variety of stuff that is easy to use

exally is offline   Reply With Quote
Old September 7th, 2008, 11:52 PM     #4 (permalink)
Junior Member
 
Join Date: Sep 2008
Posts: 18
Read up on the following built in functions--I know they're probable called something else, but I don't care about names right now, I work in 4 hours and I'm bitter ^_^

Code:
images = new Array;
images[0] = "myfolder/flutterby.gif";
images[1] = "myfolder/meniscus.jpg";
setTimeout("changeImage()";,3000);
var x = 0;
function changeImage() {
document.getElementById('imagetobechanged').src = images[x];
x+=1;
}
Then put something like this in the body...
Code:
<img id="imagetobechanged" src="images/START.png" />
... but that's just my idea...
ahmorrow is offline   Reply With Quote
Old September 8th, 2008, 11:26 PM     #5 (permalink)
Junior Member
 
Join Date: Sep 2008
Posts: 18
By the way, sorry about the filenames... I'm random when it comes to naming files and variables/functions/classes/etc.
ahmorrow is offline   Reply With Quote
Old September 13th, 2008, 10:27 PM     #6 (permalink)
Junior Member
 
Join Date: Sep 2008
Posts: 5
Quote:
Originally Posted by rickytim View Post
Site I have used from time to time
JavaScript Slideshow Wizard by BarelyFitz
Nice, thanks! I was actually looking for something like this too.
zharlene is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy (i think) Javascript image swap question... Fade2Grey Graphic Design and Digital Photography 4 April 20th, 2005 08:05 PM
Need help changing this image dlh75 Applications and Operating Systems 6 March 13th, 2005 12:38 PM
Simple HTML Image Changing Question jinsta Webmastering and Programming 9 November 3rd, 2004 11:40 PM
Javascript Image Displayer? jinsta Webmastering and Programming 2 September 15th, 2004 02:37 AM

Most Active Discussions
Is It Just Me? (532)
Misery Loves Company... (1849)
Why Does the MOON Grow Bigger as It.. (18)
heatsink issue (10)
New Mobo (18)
UPGRADING C/D DRIVE TO 250GB & .. (14)
1 internet. 1 house. 3 computer. ho.. (13)
SSD's, RAID, and External Backup (7)
Is This A Compatible Gaming PC? (18)
Recent Discussions
Building my first PC and need s.. (2)
32 or 64 bit vista (4)
Big problem with my PC (2)
system restore 'next' button wo.. (2)
firewall (1)
C++ compiler suggestions (4)
Official World of Warcraft Thre.. (4529)
Programming question (2)
UPGRADING C/D DRIVE TO 250GB &a.. (14)
FS: Dell 6000 laptop, modded 36.. (2)
Apple iPod touch 16 GB $200 (4)
Six 28-Disc Cross Design Black .. (4)


All times are GMT -4. The time now is 12:27 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28