0

Hello guys! I created a website. I tested it on my computer it works when I transfer it to the host it won't work now :( here's the code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 5.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>NeverlastingRO</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<link rel="stylesheet" type="text/css" href="ceres.css">
        <script src="jquery.js" type="text/javascript"></script>
        <script type="text/javascript">
	 $(document).ready(function()
	 {
			$('a#homeAnchor').click(function()
												  {
													  $('.fordownload,.forinformation,.fordonate').hide();
													 $('.forhome').show('slow'); 
												  })
			$('a#downloadAnchor').click(function()
												  {
													  $('.forhome,.forinformation,.fordonate').hide();
													 $('.fordownload').show('slow'); 
												  })
			$('a#informationAnchor').click(function()
												  {
													  $('.forhome,.fordownload,.fordonate').hide();
													 $('.forinformation,').show('slow'); 
												  })
			$('a#donateAnchor').click(function()
												  {
													  $('.forhome,.forinformation,.fordownload').hide();
													 $('.fordonate').show('slow'); 
												  })
	 });


</script>

Then the code at the href's are here

<a  href="#" id="homeAnchor"><div id="home"></div></a>
etc.

THANKS ALOT FOR HELPING MEEEE..!!

2
Contributors
8
Replies
11
Views
5 Years
Discussion Span
Last Post by laklaker
0

Check out the !DOCTYPE.

I'm not too sure what browsers will make of a div inside an anchor. That's a block element inside an inline element!

Anchor inside div is far more logical and will be reliably rendered by user agents (browsers).

Airshow

0

Check out the !DOCTYPE.

I'm not too sure what browsers will make of a div inside an anchor. That's a block element inside an inline element!

Anchor inside div is far more logical and will be reliably rendered by user agents (browsers).

Airshow

I changes the doctype

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

But still no luck. :(

0

Mmm, same here - it works locally but not from the web.

All I can suggest is to clear the php warnings and see if the jQuery then behaves properly.

Airshow

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.