html - template

I just want to create a static simple template page where user can user can click on link and it redirect to different pages with this same template.
1. How can I add space between links? I can use " , but is it the right way to do this?
2. When the mouse hoover link, can it turns it to a button or highlighted like image attached?
3. How can I remove border on this table?


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
    <div id="menu" style="background-color: #4d8f75;">
        <img src="test.gif" />
        <a href="http://mysite/home.html">Home</a>
        <a href="http://mysite/documents.html">Documents</a>
        <a href="http://mysite/purchased.html">Purchased</a>
        <a href="http://mysite/Ordered_by.html">Orderedby</a>
        <a href="http://mysite/internal_sales.html">Internal Sales</a>
        <a href="http://mysite/Customername.html">Customer Name</a>
       
    </div>
    <div>
        Content goes here
    </div>
</body>
</html>
button.jpg
VBdotnet2005Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RobOwner (Aidellio)Commented:
Yes you can do that with some help from JavaScript and more specifically, jQuery as it will make it easier and not so long winded.

Is there a reason you're using a HTML4 doctype?  All the major browsers support HTML5 so it is now accepted practice to use the HTML5 doctype.

This is untested but should do what you want:
<!DOCTYPE html>
<html>
	<head>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
		<meta charset="utf-8">
		<title>JS Bin</title>
	</head>
	<body>
		<div id="menu" style="background-color: #4d8f75;">
			<img src="aspen.gif" />
			<a href="#" onclick='$("#content").load("home.html");'>Home</a>
			<a href="#" onclick='$("#content").load("documents.html");'>Documents</a>
			<a href="#" onclick='$("#content").load("purchased.html");'>Purchased</a>
			<a href="#" onclick='$("#content").load("Ordered_by.html");'>Orderedby</a>
			<a href="#" onclick='$("#content").load("internal_sales.html");'>Internal Sales</a>
			<a href="#" onclick='$("#content").load("Customername.html");'>Customer Name</a>

		</div>
		<div id="content">
			Content goes here
		</div>
	</body>
</html>

Open in new window

0
VBdotnet2005Author Commented:
Where can I download this jury file?
0
RobOwner (Aidellio)Commented:
It will do it automatically.  jQuery is in the top of the code i posted:

<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

VBdotnet2005Author Commented:
It does not work for me. I am using Visual Studio 2010. Does it makes a difference? Also, how does it knows to go to Home when you changed <a href="http://mysite/home.html">Home</a>   to <a href="#" onclick='$("#content").load("home.html");'>Home</a>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
		<meta charset="utf-8">
		<title>JS Bin</title>
	</head>
	<body>
		<div id="Div1" style="background-color: #4d8f75;">
			<img src="aspen.gif" />
			<a href="#" onclick='$("#content").load("home.html");'>Home</a>
			<a href="#" onclick='$("#content").load("documents.html");'>Documents</a>
			<a href="#" onclick='$("#content").load("purchased.html");'>Purchased</a>
			<a href="#" onclick='$("#content").load("Ordered_by.html");'>Orderedby</a>
			<a href="#" onclick='$("#content").load("internal_sales.html");'>Internal Sales</a>
			<a href="#" onclick='$("#content").load("Customername.html");'>Customer Name</a>


		</div>
		<div id="content">
			Content goes here
		</div>
	</body>
</html>

Open in new window

0
RobOwner (Aidellio)Commented:
<a href="#" onclick='$("#content").load("home.html");'>Home</a>

this just says when you click me, load the html from home.html into the tag with the id = "content"
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RobOwner (Aidellio)Commented:
Sorry, I'm not sure if Visual Studio makes a difference.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.