[jQuery] jQuery problem in php
hi all,i face some problem in php,when i using html2php (http://
www.quasarcr.com/html2php/ ) convert my html code to php the jquery
scrollTop will not work. but if i using html is work ? how to solve
this problem?
Here is my normal code (html) url
http://www.multiesdesign.com/test/
u can try the button it work on html but when i convert to php the
scroll effect will never work again.
thank you
below is my code
----------------------------------------------------------
print "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>";
print "<html xmlns='http://www.w3.org/1999/xhtml'>";
print "<head>";
print "<meta http-equiv='Content-Type' content='text/html;
charset=utf-8' />";
print "<title>Madre</title>";
print "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>";
print "<html xmlns='http://www.w3.org/1999/xhtml'>";
print "";
print "";
print "<style type='text/css'>";
print "<!--";
print ".style3 {font-size: 36px}";
print ".style5 {font-size: 12px}";
print "-->";
print "</style>";
print "<head>";
print "<meta http-equiv='Content-Type' content='text/html;
charset=utf-8' />";
print "<title>Madre</title>";
print "<script type='text/javascript' src='scripts/jquery.latest.js'></
script>";
print "<script type='text/javascript' src='scripts/
thickbox.compressed.js'></script>";
print "<script type='text/javascript'>";
print "<!--";
print "$(document).ready(function(){";
print "$('a[href*=#]').click(function() {";
print "if (location.pathname.replace(/^\//,'') == this.pathname.replace
(/^\//,'')";
print "&& location.hostname == this.hostname) {";
print "var $target = $(this.hash);";
print "$target = $target.length && $target";
print "|| $('[name=' + this.hash.slice(1) +']');";
print "if ($target.length) {";
print "var targetOffset = $target.offset().top -30;";
print "$('html,body')";
print ".animate({scrollTop: targetOffset}, 750);";
print "return false;";
print "}";
print "}";
print "});";
print "});";
print "-->";
print "</script>";
print "";
print "<link href='styles/main.css' rel='stylesheet' type='text/css' /