![]() |
I need some code that places the site url on the page...
I am creating a parked page for my shit...just a generic page that has all the search shit and all that...similar to godaddy's parked page
anyway, i need a piece of code that will place the www.domain.com on the page wherever I place the code, including the title so, it is dynamic, wherever I place the code the url of the site will show up |
Do an include there. ;)
|
I think the page has to be .shtml for includes and your server has to have SSI turned on also...I think...
|
Quote:
but what type of include, how would it look? |
I think it would be something like
Code:
<!--#include file="thisfile.txt" --> Like if you had the text file in a folder called "misc" the code whereever you want to include it would look like Code:
<!--#include file="/misc/thisfile.txt" --> |
Quote:
doesn't seem right |
Quote:
I thought you meant you wanted the same URL to appear on 100's of pages...my bad man. |
Code:
<SCRIPT language="JavaScript"> |
<SCRIPT language="JavaScript">
<!-- loc=location.href; document.write(loc) //--> </SCRIPT> PERFECT! |
shit, that last one won't allow it in the title bar
|
<? print $_SERVER[SERVER_NAME]; ?>
|
Quote:
|
<SCRIPT language="JavaScript">
<!-- loc=location.href; document.write(loc) window.document.title=loc; //--> </SCRIPT> that should do it. |
Quote:
|
All times are GMT -7. The time now is 11:35 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123