aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Animated images with embedded URLs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Animated images with embedded URLs" Watch "Animated images with embedded URLs" New topic
Author

Animated images with embedded URLs

Shinelin Samuel
Ranch Hand

Joined: Mar 01, 2010
Posts: 55
Hi,

I am looking to have images (more than one), which will be transitioned one after the another, the same location of the page. (Similiar to GIF). The issue I have is that, I want to know how to transition the images and associate each image with an URL. (so that, it opens up the exact link for each image).

Thanks in advance.

- Shinelin
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Have you looked at image slide shows?

Eric
Shinelin Samuel
Ranch Hand

Joined: Mar 01, 2010
Posts: 55
Have you looked at image slide shows?


Eric, I am not very sure about your question. Are you referring to a JavaScript API or asking me if I have a seen similiar component from other websites?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

Simply switch out the src of the image element to the new URL.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Shinelin Samuel
Ranch Hand

Joined: Mar 01, 2010
Posts: 55
Bear,

I think src will solve the URL issue. But I have a case, there are more than one images that need to be changed/transitioned (say 2 secs delay).

How to do Image transition here? Thanks !
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

Same way. Why does it matter if there's more than one image? Each has a src attribute.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You are asking about JavaScript 101 stuff.

Look into setTimeout or setInterval

Eric
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

Eric Pascarello wrote:You are asking about JavaScript 101 stuff.


Isn't that kind of the point of our forums? ;)


GenRocket - Experts at Building Test Data
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Animated images with embedded URLs