...

View Full Version : Quick Help Needed



webnewb
06-30-2010, 04:24 PM
Hi guys, firstly i would just like to say how helpful the people on these forums are, your amazing! secondly, i have refined my code and its looking much tidier now, the only problem im having is my relative link isnt coming up in firefox, im getting the following error message


Problem loading page
Firefox can't find the file at /C:/Users/Dan and Ash/Desktop/samshtmlandcss/pokershop/samshtmlandcss/pokershop.html.

here is the code i am using, its the first link that wont load up, the other link is fine,

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<title> The One Stop Poker Shop </title>
</head>

<body>
<h1> Welcome To The One Stop Poker Shop </h1>
<p> The One Stop Poker Shop is the largest private poker network.
We supply top of the range poker accessories for that tournament
poker experience in your own home. Whether your playing a home
game vs a mate or two or playing a home game vs a group of individuals
the best way to impress them is with professional poker accessories and
we've got it all lined up for you in our poker shop! Click here to check out our amazing range
of poker goodies from top of the range poker tables to top of the range card shufflers!
</p>
<br />
<a href="samshtmlandcss/pokershop.html"> The Poker Shop </a>
<br />
<a href="http://www.pokerstars.com"> The world's Largest Online Poker Network </a>
</body>
</html>

any ideas??

BoldUlysses
06-30-2010, 04:36 PM
Your code above is one HTML file. On your local machine, where is "pokershop.html" located relative to your HTML file above? Is it in the same folder? Another folder on the Desktop? Another folder inside the initial folder?

It's hard to recommend a link without knowing the folder structure on your local machine.

This link might be of help (http://www.webdevelopersnotes.com/design/relative_and_absolute_urls.php3).

Remember, if "pokershop.html" is in the same folder as the referencing HTML file, you don't need to specify a filepath:


<a href="pokershop.html">The Poker Shop</a>

If it's one folder "down," use:


<a href="../pokershop.html">The Poker Shop</a>

And if it's one folder "over," use something like:


<a href="../samshtmlandcss/pokershop.html">The Poker Shop</a>

Hope that helps. :thumbsup:

webnewb
07-01-2010, 09:01 AM
thanks alot mate that really helped,

Major Payne
07-01-2010, 02:50 PM
Firefox likes the local links somewhat like this:


file:///C:/Users/Dan and Ash/Desktop/samshtmlandcss/pokershop/samshtmlandcss/pokershop.html
IE, I think, likes the slashed the other way and without "file:///".



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum