Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 10-25-2009, 08:31 AM   #1 (permalink)
Contributing Member
 
website-seo's Avatar
 
Join Date: 10-22-09
Posts: 333
iTrader: 5 / 100%
website-seo is liked by many
Javascript Change Image?

Can anyone make me a script that using javascript, changes an image to another image after a set amount of time, and that changes to another picture after another set amount of time, and so on...

I give out rep to those that answer my questions! (with the correct script)
website-seo is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-25-2009, 08:32 AM   #2 (permalink)
Contributing Member
 
website-seo's Avatar
 
Join Date: 10-22-09
Posts: 333
iTrader: 5 / 100%
website-seo is liked by many
This is a pretty simple script, it shouldn't take more than 5 minutes to make it.

Please help me. I am only learning javascript.

I just relised that this is just a slideshow script. I was having such a hard time describing it before.

I need a script that stays on one picture for 1 sec., another picture 2 sec... you get the idea.

Last edited by htmlbasictutor; 10-25-2009 at 02:22 PM..
website-seo is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-25-2009, 02:25 PM   #3 (permalink)
Super Moderator
 
htmlbasictutor's Avatar
 
Join Date: 10-29-07
Location: British Columbia, Canada
Posts: 3,240
iTrader: 0 / 0%
Latest Blog:
Website Testing

htmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web pro
A javascript slideshow only works if the visitor has javascript turned on (some surf with scripting turned off for security reasons).

Although not the coolest, latest greatest method, have you thought of using an animated gif? You didn't say what kind of images you are trying to slideshow. It is cross browser compatible and doesn't require scripting.
__________________
HTML Basic Tutor - Learn to code your web pages/blogs
Basic Computer Information - Computer Basics for website owners

Trouble getting indexed? Maybe it's something techincal - Pm me.
htmlbasictutor is online now  
Add Post to del.icio.us
Reply With Quote
Old 10-29-2009, 04:51 PM   #4 (permalink)
v7n Mentor
 
megamoose's Avatar
 
Join Date: 06-04-06
Location: Northern Ireland
Posts: 481
iTrader: 2 / 100%
Latest Blog:
None

megamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of light
Send a message via ICQ to megamoose Send a message via MSN to megamoose Send a message via Yahoo to megamoose Send a message via Skype™ to megamoose
You can do this using timers.

Just create something like:
Code:
<script type="text/javascript"> setTimeout ( "ChangeImage()", 2000 ); function ChangeImage ( ) { if(document.getElementById("imgid").src="image.jpg") { document.getElementById("imgid").src="newimage.jpg"; setTimeout ( "ChangeImage()", 10000 ); } else { document.getElementById("imgid").src="newimage2.jpg"; } } </script> <img id="imgid" src="image.jpg" />
This will change the image after 10 seconds
__________________
Message me for PHP | HTML | CSS | JAVASCRIPT | .NET | MySQL help and support
megamoose is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-31-2009, 07:11 AM   #5 (permalink)
Contributing Member
 
website-seo's Avatar
 
Join Date: 10-22-09
Posts: 333
iTrader: 5 / 100%
website-seo is liked by many
Thanks for trying, but I found a good script elseware.
website-seo is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-02-2009, 11:34 PM   #6 (permalink)
Contributing Member
 
Join Date: 11-02-09
Posts: 114
iTrader: 0 / 0%
Latest Blog:
None

jamesparker is an unknown quantity at this point
Hi

It may be possible in slide shows there are many tools for slide show.
__________________
Web Marketing Company and Web Solutions with Web Design and Development
jamesparker is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple JavaScript help please - image embedding Jason Coding Forum 5 06-16-2009 02:55 PM
Change image sinster Coding Forum 6 09-22-2007 08:38 AM
How to Change the Text Field of a Remote File with JavaScript? ivenms Coding Forum 4 09-02-2007 01:27 PM
[JavaScript] Checking if the image is loaded mess_alex Coding Forum 1 09-26-2006 05:57 PM
Javascript: Dynmically change match criteria in RegExp?? Once Coding Forum 0 06-03-2004 02:16 PM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 05:57 AM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.