ArmchairAthlete
Diamond Member
I was fooling around with Javascript for the first time today.
I had a little pet peeve about browsing through a series of screenshots or other numbered pictures. I'd have one loaded up in my browser, be done looking at it, and want to advance to the next one. Now, I can manually alter the URL and hit enter for the next shot or close the window and then try to find the next picture in the gallery or list in a post. Either of these take a lot more work than say... easily clicking a "next" button once?
Some sites already have it set up so it's easy to navigate pictures like this. However, often they've got a lot of bloat (like ads) built into their nav pages.
So I made a special page using javascript that lets you navigate easily through a series of shots. You merely copy the URL of the first picture you want to look at, paste it into the text box, and click the "New Series" button. If you've followed a link that includes what the variable for what an image's URL should be the script will automatically load up that first image without needing any additional input from the user. I've got it bookmarked for easy access whenever I want to browse through a series of pictures.
Here's a few picture URLs to test it out on (copy one of these of WoW screenshots first, or any other you'd like to ;-) ):
http://www.blizzard.com/wow/images/screens/all/ss154.jpg
http://wowcentral.com/images/wowc/screenshots/ss493.jpg
http://image.com.com/gamespot/images/2004/screen0/534914_20040415_screen008.jpg
http://war3.com/wow/screenshots/images/3941.jpg
And here's my Javascript page:
http://members.cox.net/armchair-athlete/imgnavmain.html
Maybe next year when I go to college I can learn to do this a bit better...
Anyone have any suggestions/saw any bugs? I don't think it'll work if your picture is something like www.blah.com/images/image01a.jpg. I also know that the page does not look right at 800x600 resolution (should be fine at 1024+, I use 1024x768 myself for my desktop).
EDIT: Tips for big images: Press F11 to toggle full-screen browsing and/or temporarily set a higher desktop resolution.
UPDATE 4-24-04: I've worked on it some more and added new features. Rainypickles's suggestion and Czar's suggestion are both implemented and working. You can change the image series without refreshing the page now. I've added an info page that it loads if it isn't passed a variable for an image and a page to display if a user attempts to use an invalid URL. Fixed a handful of bugs.
Try this link to see Czar's suggestion in action:
http://members.cox.net/armchair-athlete/imgnavmain.html?url=http://www.blizzard.com/wow/images/screens/all/ss146.jpg
Put whatever numbered picture you want after the "?url=" and anybody can browse through the pics easy. No telling them what to do/how to work it.
And of course you can see the page now spits out the URL of the current picture into the text box up there.
Bug The page doesn't look right at all at 800x600. I'm looking into this.
I had a little pet peeve about browsing through a series of screenshots or other numbered pictures. I'd have one loaded up in my browser, be done looking at it, and want to advance to the next one. Now, I can manually alter the URL and hit enter for the next shot or close the window and then try to find the next picture in the gallery or list in a post. Either of these take a lot more work than say... easily clicking a "next" button once?
Some sites already have it set up so it's easy to navigate pictures like this. However, often they've got a lot of bloat (like ads) built into their nav pages.
So I made a special page using javascript that lets you navigate easily through a series of shots. You merely copy the URL of the first picture you want to look at, paste it into the text box, and click the "New Series" button. If you've followed a link that includes what the variable for what an image's URL should be the script will automatically load up that first image without needing any additional input from the user. I've got it bookmarked for easy access whenever I want to browse through a series of pictures.
Here's a few picture URLs to test it out on (copy one of these of WoW screenshots first, or any other you'd like to ;-) ):
http://www.blizzard.com/wow/images/screens/all/ss154.jpg
http://wowcentral.com/images/wowc/screenshots/ss493.jpg
http://image.com.com/gamespot/images/2004/screen0/534914_20040415_screen008.jpg
http://war3.com/wow/screenshots/images/3941.jpg
And here's my Javascript page:
http://members.cox.net/armchair-athlete/imgnavmain.html
Maybe next year when I go to college I can learn to do this a bit better...
Anyone have any suggestions/saw any bugs? I don't think it'll work if your picture is something like www.blah.com/images/image01a.jpg. I also know that the page does not look right at 800x600 resolution (should be fine at 1024+, I use 1024x768 myself for my desktop).
EDIT: Tips for big images: Press F11 to toggle full-screen browsing and/or temporarily set a higher desktop resolution.
UPDATE 4-24-04: I've worked on it some more and added new features. Rainypickles's suggestion and Czar's suggestion are both implemented and working. You can change the image series without refreshing the page now. I've added an info page that it loads if it isn't passed a variable for an image and a page to display if a user attempts to use an invalid URL. Fixed a handful of bugs.
Try this link to see Czar's suggestion in action:
http://members.cox.net/armchair-athlete/imgnavmain.html?url=http://www.blizzard.com/wow/images/screens/all/ss146.jpg
Put whatever numbered picture you want after the "?url=" and anybody can browse through the pics easy. No telling them what to do/how to work it.
And of course you can see the page now spits out the URL of the current picture into the text box up there.
Bug The page doesn't look right at all at 800x600. I'm looking into this.