Solved

Easy way to swap image out on page load

Posted on 2014-10-23
8
194 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

752 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