I am trying to position a script in my html document but I am having trouble. can I position it in my css commands? Anyone know html help me out!
How do I position scripts in my html document?
Show us the site or the script!
If you have a css layout already .. you can modify the php file to makes its output use the CSS layouts with classes like
%26lt;p class=yourparagraphclass%26gt; something %26lt;/p%26gt;
Hope it helps some!
Blue Chip Hosting staff,
http://www.bluechiphosting.com
Reply:Assuming it's something like Javascript, you can put it anywhere in the HTML. Generally, long scripts go in the header. Don't put it inside your css %26lt;style%26gt; tags, as it may confuse the css.
They always say to comment-out the script inside the %26lt;script%26gt; tags, so as not to confuse old browsers. I always do this, but I don't know how necessary it is these days.
Anyway, here is how I do it:
%26lt;html%26gt;
%26lt;head%26gt;
%26lt;title%26gt;Name of the page%26lt;/title%26gt;
%26lt;style%26gt;css statements%26lt;/style%26gt;
%26lt;script language="javascript"%26gt;
%26lt;!--
script commands
--%26gt;
%26lt;/script%26gt;
%26lt;/head%26gt;
%26lt;body%26gt;
html....
%26lt;/body%26gt;
%26lt;/html%26gt;
Reply:you can put it before or after the body tag..
Reply:What kind of script are you trying to put on page ??
What is url of site ??
If you put some details up I'll try to help,, going to bed pretty soon so if I don't get back to it tonight I'll look in the morning
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment