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' /
>";
print "<style type='text/css'>";
print "<!--";
print ".style2 {color: #FFFFFF}";
print ".style4 {color: #FF0000}";
print ".style7 {font-size: 9}";
print ".style9 {font-size: 18px}";
print ".style12 {font-size: 16px}";
print ".style13 {color: #FFFFFF; font-size: 16px; }";
print "-->";
print "</style>";
print "</head>";
print "";
print "<body>";
print "<p><a name='top'></a></p>";
print "<div id='main_container'>";
print "<div id='navigation'>";
print "";
print "<ul>";
print "<li><h1><a href='#term' class='style13'>Term</a></h1>";
print "</li>";
print "<li><h1><a href='#contact' class='style13'>Contact</a></h1>";
print "</li>";
print "<li><h1><a href='#product' class='style13'>Product</a></h1>";
print "</li>";
print "<li><h1><a href='#about' class='style2 style12'>About</a></
h1>";
print "</li>";
print "<li><h1><a href='#home' class='style12 style2'><strong>Home</
strong></a></h1>";
print "</li>";
print "</ul>";
print "<a name='work' id='work'></a>";
print "<p>&nbsp;</p>";
print "<div id='header_bg'>";
print "<h1><span class='hidden'>Associatedflavors.com</span></h1>";
print "<p>&nbsp;</p>";
print "</div>";
print "<div class='page_container'>";
print "<h3 class='style3'><span class='style4'>H</span>ome<a
name='home' id='home'></a></h3>";
print "<h2>Title01</h2>";
print "<p>Welcome to Associatedflavors.com. My name is Daniel
Strabley, I am a 25 year old Creative Developer in Chicago Illinois
and this is my portfolio and blog. Please take some time to look over
what I have and learn a little more about me - <strong>I am for hire!</
strong></p>";
print "<h2>Title02</h2>";
print "<p>By the way, if you have an iPhone and for the love of god
you should! Please visit my mobile companion site. This site will
redirect you when you open it on your phone.</p>";
print "<p><a href='#top' class='style4'>Back To Top</a></p>";
print "</div>";
print "<div class='page_container'>";
print "<h4 class='news style5'>&nbsp;</h4>";
print "</div>";
print "";
print "";
print "";
print "<p>&nbsp;</p> <p>&nbsp;</p>";
print "<div class='page_container'>";
print "<p>&nbsp;</p>";
print "</div>";
print "";
print "<div class='page_container'>";
print "<h3 class='style3'><span class='style4'>C</span>ontact<a
name='contact' id='contact'></a></h3>";
print "<h2>Company&nbsp;&nbsp;--<span class='style7'>&nbsp;&nbsp;<span
class='style9'>name</span></span></h2>";
print "<h2>Address&nbsp;&nbsp;&nbsp;&nbsp;--<span
class='style7'>&nbsp;&nbsp;<span class='style9'>Address</span></span></
h2>";
print "<h2>Tel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--<span class='style7'>&nbsp;&nbsp;<span
class='style9'>Tel</span></span></h2>";
print "<h2>H.P&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;--<span class='style7'>&nbsp;&nbsp;<span
class='style9'>H.P</span></span></h2>";
print "<h2>Fax&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;--<span class='style7'>&nbsp;&nbsp;<span
class='style9'>Fax</span></span></h2>";
print "<h2>E-mail&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--<span
class='style7'>&nbsp;&nbsp;<span class='style9'>E-mail</span></span></
h2>";
print "&nbsp;";
print "&nbsp;";
print "<p><a href='#top' class='style4'>Back To Top</a></p>";
print "</div>";
print "</ul>";
print "";
print "";
print "<div class='page_container'>";
print "<h3 class='style3'><span class='style4'>T</span>erm<a
name='term' id='term'></a></h3>";
print "<p>information and Uses&nbsp;&nbsp;";
print "&nbsp;";
print "&nbsp;";
print "When someone visits the Site, our web servers automatically
gather information that allows the site to communicate with the
visitor's computer during the visit. We also track such information as
the number of visits to the site, which parts of the site visitors
select, IP address (the Internet address assigned to your computer
from your Internet Service Provider), domain type, browser type (e.g.,
Netscape or Internet Explorer), date and time of day. We use those
types of information for statistical purposes that help us design and
administer the Site. Those types of information do not disclose
Personal Information that would permit us to identify or locate
individual visitors. </strong></p>";
print "<p><a href='#top' class='style4'>Back To Top</a></p>";
print "</div>";
print "</div>";
print "</body>";
print "</html>";
print "";

Reply via email to