-
Load URL instead of image.
1) Utilizing the onphotoclick event handler and built in Lightbox
2) http://www.dynamicdrive.com/dynamici...suppliment.htm
http://www.dynamicdrive.com/dynamicindex4/ddphpalbum.js
3) I am using this on a kiosk environment. I was wondering if when a thumbnail is clicked can this script be modified to open a URL instead. The URL is to a .avi file with the same name as the thumbnail that opens in VLC. I tried to split the file name and use .avi but I cannot seem to get it to work. I am very new to javascript. Any help would be appreciated.
This sounds like it would be easy, but I could be way off on that assumption.
**EDIT for more information
The onphotoclick in the .js file looks like this:
phpimagealbum.routines.addEvent(albumdiv, function(e){
var e=window.event || e
var target=e.srcElement || e.target
if (target.tagName=="IMG" && target.getAttribute('data-index')){
thisalbum.onphotoclick(target, thisalbum.albumvar.images[parseInt(target.getAttribute('data-index'))][0], thisalbum.albumvar.images[parseInt(target.getAttribute('data-index'))][1])
}
}, "click")
},
Also this is the code supplied to change the file name. I used this to append the .avi to no avail:
onphotoclick:function(thumbref, thumbindex, thumbfilename){
var largefilename=thumbfilename.split(".")[0] + "_large" + ".jpg" //take "house.jpg", and change it to "house_large.jpg"
thumbnailviewer.loadimage("http://www.mysite.com/large/" + largefilename, "fit2screen")
}
**EDIT 2 - I added a link to the .js it is using. any help would be very much appriciated
Last edited by Digitalguy; 02-09-2011 at 06:24 PM.
Reason: Even more information
-
-
I really cannot figure this one out. Any help at all would be greatly appreciated.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks