Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Clicking on an image and nothing happens
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedClicking on an image and nothing happens

 Post Reply Post Reply
Author
keithmq View Drop Down
Newbie
Newbie


Joined: 10 June 2009
Status: Offline
Points: 3
Direct Link To This Post Topic: Clicking on an image and nothing happens
    Posted: 10 June 2009 at 2:57am
I am a realy novice at developing web pages.  So recently I was creating a simple web page with 5 pictures on it.  I have it set up that when I click on the picture, it creates a new page with only the picture I click on.  The commands I use are extremely simple.  In the main code I have
 
<a href="html/seattle_med.html">
    <img src="thumbnails/seattle-med.jpg" alt="My iPod in Seattle, WA"></a>
    <a href="html/seattle_downtown.html">
    <img src="thumbnails/seattle_downtown.jpg" alt="An iPod in downtown Seattle, WA"></a>
    <a href="html/seattle_downtown.html">
 
In the html file it is:
 
File 1
 
<html>
  <head>
    <title>myPod: Seattle Ferry</title>
    <style type="text/css"> body { background-color: #eaf3da; } </style>
  </head>
  <body>
    <h1>Seattle Ferry</h1>
    <p>
      <img src="../photos/seattle_med.jpg" alt="An iPod on the Seattle ferry">
    </p>
 </body>
</html>
 
File 2
<html>
  <head>
    <title>myPod: Seattle Downtown</title>
    <style type="text/css"> body { background-color: #eaf3da; } </style>
  </head>
  <body>
    <h1>Seattle Downtown</h1>
    <p>
      <img src="../photos/seattle_downtown.jpg" alt="An iPod in downtown Seattle, WA">
    </p>
 </body>
</html>
 
When I bring up the main page (index.html) all the pictures show up, but some have a slight red border around them and one has a blue border.  When I click on file with the red border, it calls the html file and displays the picture as a new window.  When I click on the file with the blue border --- nothing.  I didn't add the borders they seem to come with the web page.  I've checked the permissions on the files, but they all seem to be the same.
 
It's so simple, but it's driving my crazy.  If anyone has experienced this simple issue, please let me know how you solved it.  I would really appreciate it. 
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Direct Link To This Post Posted: 10 June 2009 at 7:42pm
The borders will be added if you add a link to an image.

If you wish to remove them just add border="0" to the image like so:

<img src="pic.gif" border="0">


Are you viewing the pages locally? (stored on your computer?) if so, then it might be that the page does not exist. Make sure that you entered the URL correctly

If your pages are hosted on a website, could you provide the address to the site so I (or someone else) can have a better idea as to what the problem is?
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
keithmq View Drop Down
Newbie
Newbie


Joined: 10 June 2009
Status: Offline
Points: 3
Direct Link To This Post Posted: 11 June 2009 at 2:30am
Scotty32,
 
              Thanks for getting back to me, I really appreciate it.  The photos are local and they are in the same directory as the other files that work.  It just baffles me.  I have gone over the code letter by letter symbol by symbol and it's all the same.  I even duplicated the image tag and got two copies of the same picture on the web page.  Both have a blue border while the others have a thin red border and neither of the blue border files can be clicked on.  I have a feeling it may have something to do with the protection on the files, but I seem to have compare the security on the files you can click on and those you can't.  They seem to be the same.  Maybe there is something I'm missing.
 
Back to Top
scottage View Drop Down
Newbie
Newbie


Joined: 20 August 2004
Location: United Kingdom
Status: Offline
Points: 15
Direct Link To This Post Posted: 15 June 2009 at 1:38pm
As Scotty32 states; the borders indicate that the image is a link (in much the same way that text is underlined). A Blue border is a link that you have not clicked on before and a red border is a link that you have clicked on before (before being is in your browsing history.
The image that has the Blue border doesn't seem to be a correctly marked-up link; you click it and nothing happens therefore no a link. If you had file permissions then the link would work (you can click it and something happens) but the file that you linked to would cause an error not the file that you are linking from - web pages just aren't that clever. Is it the first image that has the issues?
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Direct Link To This Post Posted: 20 June 2009 at 6:33pm
Am I missing something here with duplicated posts? Scratches head and wonders why
Wacko
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Direct Link To This Post Posted: 20 June 2009 at 7:00pm
Its called "Marketing", the idea is, you copy and paste what some one else has said (saves time having to type it) and then the search engines pick up the link in the signature and you get page rank, the Avg Joe moderator wont notice that its C&P so will leave it as a legitimate post.

Unfortunately, (1) Im not an Avg Joe moderator, (2) the forums have Nofollow tag on user-generated links, which means no page rank juice and (3) they failed to enter the link properly..... oh and (4) I've deleted them.



Anyway, as for the original poster....

As I said, the border is entered by default on all images that are links, you can remove them by following my advice above. The colours are set by the web page (eg red = visited link, blue = non visited link).

The reason the image is not loading is because the path to the image or html page is set incorrectly in the link. The reason it doesnt load and show a 404 error is because it is on your computer, when accessing files locally the browser doesnt display a 404 page (since its not on a server - and the server produces the 404 error) so doesnt load the page.

If you can upload this to a website, for example a free service such as freewebs.com, and send me the link to this either on here or in a PM (if its private) for me to look at and advise further, otherwise I am unable to help.
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.