Solved

Easy way to swap image out on page load

Posted on 2014-10-23
8
184 Views
Last Modified: 2014-10-23
How can I swap an image on page load that will rotate 4 images all same size in same position.  The swap image behavior in dreamweaver cs4 only does this for 2 images.  Don't want complex coding.
0
Comment
Question by:kdschool
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 40399894
Swap image is meant for rollover effects (image changes onmouseover or similar event).  When you say you want 4 images, what is the desired application?  Slideshow?
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 40399913
Don't want complex coding.
Check this plugin : http://jquery.malsup.com/cycle2
0
 
LVL 29

Expert Comment

by:Pravin Asar
ID: 40399993
Of course, there are tons of jquery image rotator codes.

Here is one I had created some time back
http://jsfiddle.net/pravinasar/6qmv3hqr/

You may explore, Ninja Slider

http://www.menucool.com/responsive-slider#view2
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:kdschool
ID: 40400087
On this plug in do I download the files and put them in my directory with the page I want to cycle the photos on?  Then just add their code and point to my image files.  I tried this and it's not working correctly.

Check this plugin : http://jquery.malsup.com/cycle2
0
 

Author Comment

by:kdschool
ID: 40400198
If I already am using a jquery menu on this page can I still use this also?  I have tried downloading the files to my directory and pointing to those in the header, also pointing to his files.  Then put this in a div tag that is the grid and added my images and it just displays all at the same time under each other.  Not sure what I am doing wrong.
0
 
LVL 82

Expert Comment

by:leakim971
ID: 40400236
Check the console to locate error
Where to see your page?
0
 

Author Comment

by:kdschool
ID: 40400286
It's working now if I use his exact location for the files in the header.  I guess that is ok unless he moved them.  Why if I downloaded both of those files and then pointed to them as the src would it not work.  The console only shows one error and I don't think it's relelvant.  I am not using //@ anywhere in this code.

Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
0
 

Author Closing Comment

by:kdschool
ID: 40400321
Very good program and showed me how to debug it also.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HTML auto refresh to another site 4 28
Html using "Or" in condition 3 26
HTML or/and CSS codes to construct numbered paragraphs. 5 20
web page freezes after ajax post 7 45
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question