View Full Version : Photo Gallery
FaeQueen
08-12-2003, 07:05 AM
I d/loaded Photo Gallery (from A1 Javascripts) and spent ages compiling it. When I went to test it in my browser I was horrified to find that the the first image reads:
"This image is stolen from A1 Javascripts.Com - the site you see this image on promotes bandwidth theft."
How can this be? If I remove the link - the programme doesn't work. Arrghh!! I'm innocent.
:confused:
Goldilocks
08-12-2003, 07:34 AM
Where it says <img src="http://www.a1javascripts.com/images/Arcdetri.jpg"> in the code you need to replace it with your own image, rather than just deleting it. Make sure the path to the image is correct, and replace the other images with your own too.
I must admit that it is a bit alarming though for anyone who innocently downloads the script and tries it out on their site! It does seem a bit over the top.
tarundhillon
08-12-2003, 08:40 AM
i guess people at seventh heaven are innocent :D
FaeQueen
08-12-2003, 02:03 PM
Many thanks for the help - yes it is a bit OTT - HOWEVER - it was because I went back to the site to send them an e-mail that I was directed here - so I'm now actually quite glad. ;)
Goldilocks
08-12-2003, 02:34 PM
Every cloud has a silver lining eh? ;)
FaeQueen
08-13-2003, 03:43 AM
I'm still not getting this programme to work - I've started from scratch at least 5 times, I did get it going once so I know it can deliver the goods.
Is it alright to put it on my webspace and post a link here for some kind soul to take a peek?
Goldilocks
08-13-2003, 03:45 AM
Of course, no problem!
FaeQueen
08-13-2003, 06:57 AM
Well for anyone who wants to share my headache
PhotoGallery=Diddly Squat (http://www.freewebs.com/thecultureclub/test/ciixiialbum.htm)
TIA :)
tarundhillon
08-13-2003, 07:37 AM
give an id to the image and then get the id of the image in the ***tions by document.getElementById()
change the following lines of code in the HTML
<td width="100%"><img src="ciixii/cixtitle.jpg" width="300" height="240" id="_image">
in the functions in the SCRIPT
var id = document.getElementById("_image");
id.src=photos[which]
FaeQueen
08-13-2003, 08:43 AM
This is going to be fun - looks as Chinese as the content to me but I'll have a bash. Thanks :)
FaeQueen
08-13-2003, 03:00 PM
Well moderate success to report. I've managed to get the photos to load - in the right order and right to the end however the back button isn't working neither is the 'Start Over' link.
In the 'Start Over' link should the (#) have a value?
Sorry if these are infantile questions but it's like wiring a socket in the dark for me. :o
FaeQueen
08-19-2003, 05:50 AM
Well I managed to fix my problem - not sure how though ;)
It seemed to work after I tightened up the code - do spaces affect javascript as in html??
Vincent Puglia
08-19-2003, 02:02 PM
Hi FaeQueen,
do spaces affect javascript as in html??
for the most part, space is used in javascript for readability. The following two snippets are essentially the same:
function a(){var something=2;var x=0;alert(something-x);}
function a()
{
var something = 2;
var x = 0;
alert( something - x);
}
Some people remove as many spaces as possible so that the code becomes virtually unreadable (and then they come crying to a forum asking for debugging help). My recommendation is to use as much space as you like.
Of course, if this doesn't answer your question, feel free to repost.
Vinny
FaeQueen
08-20-2003, 04:44 AM
Thanks Vinny.
Btw, just had a look at your site which looks incredible.
It terms of javascript knowledge however, for me it was reading a book on brain surgery when I can barely carve a chicken! Never mind I shall make it my goal to learn - what excuse do I have with great teachers like you around! ;)
Vincent Puglia
08-20-2003, 08:15 AM
Hi FaeQueen,
with great teachers like you around!
[blush, blush]Gee...[blush, blush/][shuffle feet with head down /]Thanks ;)
You might find this (http://www.htmlgoodies.com) site (htmlGoodies) somewhat easier to follow; it's the one I used when first learning html/javascript.
Vinny
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.