Click to See Complete Forum and Search --> : [RESOLVED] Show and Hide Layers (images)
leighchic
12-21-2007, 01:26 PM
Hi there
I am working on a website. It can be seen here -
http://www.themagickschool.com/leigh/
What i want to happen, is when user clicks on one of the thumbnails, an enlarged image will appear on the right block (onMouseClick). I will create all the individual enlarged images just slightly smaller than the white section of the block, so it sits in nicely. I am going to be using this function alot throughout this website, so i need it to work efficiently.
What is the best way?
Also, this function must work in IE 6 + and Firefox
Help much appreciated!
Ciao
Leigh
dtm32236
12-21-2007, 02:25 PM
sounds like you're looking for this (http://www.netlobo.com/div_hiding.html)
dtm32236
12-21-2007, 02:28 PM
or you can look at something like this (http://www.cssplay.co.uk/menu/photo_simple). i haven't looked at this code... i'm not sure how complicated it is.
the other one is really simple if you have even the most basic understanding of CSS and JavaScript.
leighchic
12-21-2007, 02:54 PM
Hi
Thank u!
It worked for the first one, but now the second one doesnt work. Also, when the user clicks another, the large image needs to be replaced.. so how does that work?
leighchic
12-21-2007, 02:55 PM
Oh, i just saw yr second comment. Let me have a look at that.
leighchic
12-21-2007, 03:01 PM
:-( Oh goodness.. too complicated. I have looked at the source code, but i dont understand it... it doesnt seem as if there is a break down of how to do it.
leighchic
12-21-2007, 04:01 PM
Ive downloaded the code from here:
http://www.stunicholls.com/gallery/left_right_click.html
I would need what they do there, which is the text underneath changing.
I am trying to make sense out of all of it. If you could break it down for me, so i could understand it better, that would be very helpful.
Centauri
12-21-2007, 04:54 PM
Did you download the zip files from the link right down the bottom of that site ?
It is essentailly an unordered list where the thiumbnail is a background of the <li> (thumbnail images need to be in the thumbs folder, with file names of th1.jpg, th2.jpg etc, unless you want to change the file names as listed in the left_right_click.css file). Within each <li> there is a div that contains the full size images which are currently linked to Stu's site - replace those file names with your image names. Following each div is a <span> which contains the displayed text - replace the Lorem ipsum text there with your own.
leighchic
12-22-2007, 05:33 AM
Yes, i did download the zip files. Thank u for the breakdown!! I will have a go later today and see if i can figure it out!
leighchic
12-22-2007, 12:48 PM
I found another solution from another website i worked on a few years ago, which seems to be much simpler. BUT now, my problem is i dont know how to change the descriptions at the bottom each time. Any suggestions?
leighchic
12-24-2007, 09:38 AM
I could do with some help again please!
I found this piece of code from another website: http://www.plus2net.com/javascript_tutorial/hide-layer.php
I used it in my code to try show the text layer - which needs to change each time, but it does not work.
At the moment, when you click the first thumbnail, a piece of text should appear beneath the big image, but it doesnt.
What am i doing wrong?
http://www.themagickschool.com/leigh/
leighchic
12-24-2007, 10:37 AM
Also, when another thumbnail is clicked, the text layer needs to become hidden again and new text layer needs to appear.
I tried to study http://www.stunicholls.com/gallery/l...ght_click.html
But, its too complicated for me to understand - to integrate into my design
leighchic
12-27-2007, 04:29 AM
I want to delete this thread but i dont seem to be able to? what do i do?
dtm32236
12-27-2007, 08:37 AM
did you ever get this working? it looks like you did on your site.
and I'm not sure you can delete threads - I'm pretty sure you can't. You'd have to ask a moderator (like LeeU)... why do you want it deleted anyway?
leighchic
12-27-2007, 05:41 PM
Yeah, i got it working.. used all sorts of different methods - put them all together, and it works! Miraculously! :-)
I wanted it deleted as i am not working on it anymore. Who do i email to ask?
dtm32236
12-27-2007, 05:49 PM
if you really want it deleted, you can Private Message 'LeeU' or any other moderator and ask, but normally all posts remain up even after they're resolved in the case that someone else has a question about the same issue - they can search and find the old thread or they may be referred to it by another user...