This is a discussion on "[SOLVED] Image links disappear after clicked" within the Web Page Design section. This forum, and the thread "[SOLVED] Image links disappear after clicked are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Image links disappear after clicked
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
[SOLVED] Image links disappear after clicked
i've been having trouble with my image links. I have a top nav bar and a left hand side nave bar, they were interfering with each other but I've managed to fix that. Although now my image links which change on hover disappear after I click them. They're designed as one image which moves position when it's hovered over. here's the code:
CSS
|
|
|
|
|||
|
Re: Image links disappear after clicked
This appears to be an ie issue as it works ok in ff.
Try changing.
Last edited by Marc; Dec 4th, 2007 at 12:48. Reason: Added [html] tags around code. |
|
||||
|
Re: Image links disappear after clicked
it's not working for me in FF. How weird.
Once I have clicked on a link it applies the following style: #nav a:link, #nav a:visited Which doesn't have a image associated with it. It is not applying the associated id to the nav item. Start looking there, nad see what you can find. Stew
__________________
WelshStew Lead Administrator tierney rides tboard - uk site | xtreme wales - extreme clothing If you think I've helped, click the "Thanks" webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
Last edited by welshstew; Dec 4th, 2007 at 12:59. |
|
|||
|
Re: Image links disappear after clicked
Nor for me... Try taking the </link> away. The link tag is a self closing tag, and does not require you to close it with </link>.
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
||||
|
Re: Image links disappear after clicked
less than 10 lines of code and it's all messed up
Since you are using an HTML doctype, you don't close empty elements /> The link tag doesn't have a closing tag |
|
|||
|
Re: Image links disappear after clicked
Am I missing something here?
In ff when you hover the image on the link changes, when you click the link the page just reloads as they are all linked to index, the images and links dont dissapear except in ie6. |
|
||||
|
Re: Image links disappear after clicked
They disappear in FF for me.
|
|
||||
|
Re: Image links disappear after clicked
The images on the left (nav) aren't even showing up for me.
|
|
||||
|
Re: Image links disappear after clicked
Can you rename:
#nav a:link, #nav a:visited #nav a:hover, #nav a:visited:hover, #nav a:link:active, #nav a:visited:active, #nav a:active to just be #nav a:link, #nav a:hover, just for now and then rehost to see the result
__________________
WelshStew Lead Administrator tierney rides tboard - uk site | xtreme wales - extreme clothing If you think I've helped, click the "Thanks" webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
|
|
|||
|
Re: Image links disappear after clicked
Honest its working in ff for me (I must have a bizzare ff setup, it did update yesterday)
|
|
||||
|
Re: Image links disappear after clicked
I think I have got it. No not that the answer.
Can you please remove :link from all the a#<idname>:link css code; i.e. a#mightgaine:link should be a#mightgaine and that should do it. I hope. P.S validate you code. Edit - for some reason the visited is not working in FF but is in IE7, not sure why
__________________
WelshStew Lead Administrator tierney rides tboard - uk site | xtreme wales - extreme clothing If you think I've helped, click the "Thanks" webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
Last edited by welshstew; Dec 4th, 2007 at 13:39. Reason: FF strangeness |
|
|||
|
Re: Image links disappear after clicked
Thanks everyone for the replies and yes the problem occurred in both IE and FF, the links could be brought back by emptying your browser's cache and refreshing the page for those who hadn't realized that. Also none of the links linked to anyone page except for a few of them because I used href="#". Sorry karinne, I should validate my page more often when I make changes, although the validator I was using didn't pick up the mistake I made with the doc type, that was my bad. alot of the suggestions you made didn't fix the problem but did improve the page but the last two posts gave me an idea, so I tried this:
So far out of the 3 forums I have tried this is the best help i've recieved and thank you very much for the suggestions. |
|
||||
|
Re: Image links disappear after clicked
Quote:
Glad to see you sorted it out Welcome to the forumz BTW |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] Java - Change image when the title is clicked | Graisbeck | Other Programming Languages | 4 | Nov 20th, 2007 16:43 |
| How can I get image links? | Kwabena | Website Planning | 5 | May 31st, 2007 00:54 |
| Faux Columns Problem - scolling up / down causes part of background image 2 disappear | brianwilson71 | Web Page Design | 17 | Apr 25th, 2007 00:34 |
| Rollover image with links on new image | stoob | JavaScript Forum | 2 | Feb 8th, 2007 22:05 |
| Blured Links (image links) | bruno89 | Web Page Design | 2 | Jul 25th, 2006 14:48 |