walksfarman Posted August 26, 2008 Share Posted August 26, 2008 I have my own website, set up by a friend, and do the updating and changes to it myself. However, I know nothing about php and don't want to abuse my friends generosity any further. What I'd like to be able to do is have the pictures appear in the gallery in numerical order by filename, and to have the filename appear when the (enlarged) image is hovered over. you can view it at www.mountain-man.co.uk. Is this possible? Easy? Within my ability??? Thanks in anticipation... Quote Link to comment Share on other sites More sharing options...
zq29 Posted August 26, 2008 Share Posted August 26, 2008 Possible? Yes. Easy? For some, yes. Within your ability - Probably not. We can rarely help with issues like this without seeing code - Post some up Quote Link to comment Share on other sites More sharing options...
walksfarman Posted August 26, 2008 Author Share Posted August 26, 2008 Ok, browsing for some appropriate code to send you, and it looks like it might be Java in the form of Lightbox, would this mean I'm on the wrong forum??? I'll keep looking for a likely bit... Quote Link to comment Share on other sites More sharing options...
walksfarman Posted August 26, 2008 Author Share Posted August 26, 2008 How about this, is it something to do with the "none" element in the create caption bit? - // create image var objImage = document.createElement("img"); objImage.setAttribute('id','lightboxImage'); objLink.appendChild(objImage); // create details div, a container for the caption and keyboard message var objLightboxDetails = document.createElement("div"); objLightboxDetails.setAttribute('id','lightboxDetails'); objLightbox.appendChild(objLightboxDetails); // create caption var objCaption = document.createElement("div"); objCaption.setAttribute('id','lightboxCaption'); objCaption.style.display = 'none'; objLightboxDetails.appendChild(objCaption); // create keyboard message var objKeyboardMsg = document.createElement("div"); objKeyboardMsg.setAttribute('id','keyboardMsg'); objKeyboardMsg.innerHTML = 'click image to close'; objLightboxDetails.appendChild(objKeyboardMsg); Quote Link to comment Share on other sites More sharing options...
zq29 Posted August 27, 2008 Share Posted August 27, 2008 Yeah, that's JavaScript. It looks like that might be inside of a loop, are there curly brackets surrounding that block of code, like... for(a as b) { ... } Is there any PHP in the script at all, surrounded by <?php ?> - If not, I'll move this over to the JavaScript forum. Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted August 27, 2008 Share Posted August 27, 2008 How about this, is it something to do with the "none" element in the create caption bit? - // create image var objImage = document.createElement("img"); objImage.setAttribute('id','lightboxImage'); objLink.appendChild(objImage); // create details div, a container for the caption and keyboard message var objLightboxDetails = document.createElement("div"); objLightboxDetails.setAttribute('id','lightboxDetails'); objLightbox.appendChild(objLightboxDetails); // create caption var objCaption = document.createElement("div"); objCaption.setAttribute('id','lightboxCaption'); objCaption.style.display = 'none'; objLightboxDetails.appendChild(objCaption); // create keyboard message var objKeyboardMsg = document.createElement("div"); objKeyboardMsg.setAttribute('id','keyboardMsg'); objKeyboardMsg.innerHTML = 'click image to close'; objLightboxDetails.appendChild(objKeyboardMsg); Is there more to that portion of the JavaScript? From that, I can't tell if the image is added. Also, next time your code. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.