Hello, i have the following webpage, but on whatever reason, when i click the button, it does not do anything. Code:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ItsMyWebsite</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js">
function fader()
{
$("#logofade").html('<img src="images/logo.gif" alt="Logo" />');
$("#logofade").fadeOut("slow", function(){
window.location = "index2.html";
});
}
</script>
</head>
<body>
<p><input name="logofader" type="button" value="FadeIt" onclick="fader()" /></p>
<p><span id="logofade"></span></p>
</body>
</html>
Last edited by gdscei; 01-15-2010 at 05:30 PM..
|