Unix/Linux Go Back    


Web Programming Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, HTML, SEO, and other Web APIs and topics.

Changing Images in HTML

Web Programming


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 05-28-2015   -   Original Discussion by minnawanda
minnawanda's Unix or Linux Image
minnawanda minnawanda is offline
Registered User
 
Join Date: May 2015
Last Activity: 31 May 2015, 10:22 PM EDT
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Changing Images in HTML

Hi,
I recently bought shared hosting at asphostportal.com. Now, I have little problem. Could you help me please? How to change the images after every 5 seconds in html?
The images should display in the same places for every 5 seconds?
can anybody send me code please.

Thanks.
Sponsored Links
    #2  
Old Unix and Linux 05-28-2015   -   Original Discussion by minnawanda
blackrageous's Unix or Linux Image
blackrageous blackrageous is offline
Registered User
 
Join Date: Jul 2013
Last Activity: 12 April 2017, 6:26 PM EDT
Location: Austin, Texas
Posts: 540
Thanks: 13
Thanked 111 Times in 108 Posts
Jquery slide show (fades out/in images)....see...

Download Jssor Slider Free for website design

sample: Simple Fade Slideshow

supposedly free to download, no usage restrictions.
Sponsored Links
    #3  
Old Unix and Linux 05-31-2015   -   Original Discussion by minnawanda
figaro's Unix or Linux Image
figaro figaro is offline
Registered User
 
Join Date: Jan 2007
Last Activity: 27 August 2016, 2:57 PM EDT
Posts: 842
Thanks: 93
Thanked 29 Times in 25 Posts
Google for slideshow javascript and many examples of sample code will come to the fore.
    #4  
Old Unix and Linux 05-31-2015   -   Original Discussion by minnawanda
minnawanda's Unix or Linux Image
minnawanda minnawanda is offline
Registered User
 
Join Date: May 2015
Last Activity: 31 May 2015, 10:22 PM EDT
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by blackrageous View Post
Jquery slide show (fades out/in images)....see...

Download Jssor Slider Free for website design

sample: Simple Fade Slideshow

supposedly free to download, no usage restrictions.
Thank you very much Linux

---------- Post updated at 09:10 PM ---------- Previous update was at 09:06 PM ----------

Quote:
Originally Posted by figaro View Post
Google for slideshow javascript and many examples of sample code will come to the fore.
I tried to use google for slideshow js, but I get problem. My image slideshow works in all browser but not in Google Chrome. Any idea how to fix it ? Thank you very much Linux
Sponsored Links
    #5  
Old Unix and Linux 06-01-2015   -   Original Discussion by minnawanda
TerrellSmith's Unix or Linux Image
TerrellSmith TerrellSmith is offline
Banned
 
Join Date: May 2015
Last Activity: 1 June 2015, 6:34 AM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
You can try this code may be it will work for you.



Code:
<?xml version = "1.0" encoding = "utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns = "http://www.w3.org/1999/xhtml">
   <head>
      <title>change picture</title>
      <script type = "text/javascript">





        function changeImage()
{
    var img = document.getElementById("img");
    img.src = images[x];
    x++;

    if(x >= images.length){
        x = 0;
    } 
   var timerid = setInterval(changeImage(), 1000);
}


}

var images = [], x = 0;

images[0] = "image1.jpg";
images[1] = "image2.jpg";
images[2] = "image3.jpg";


      </script>
   </head>
   <body onload = "changeImage()">
 <img id="img" src="startpicture.jpg">
   </body>
</html>


Last edited by jim mcnamara; 06-01-2015 at 09:12 AM..
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Bash Script to find/sort/move images/duplicate images from USB drive JonaQuinn Shell Programming and Scripting 1 10-16-2014 02:34 PM
Difficulty cleaning references to duplicated images in HTML code mdart Shell Programming and Scripting 9 01-31-2013 05:59 AM
accepting images as a list and changing the name subway69 Shell Programming and Scripting 3 04-25-2012 06:51 PM
Referring to attached images in html email body through mailx biswasbaishali Shell Programming and Scripting 5 03-15-2010 01:13 PM
html link to images in /tmp directory Solerous Web Programming 2 11-25-2008 01:00 PM



All times are GMT -4. The time now is 01:57 AM.