This question has already been answered for registration,
participation is to improve functionality and knowledge. Thanks.
<script language="JavaScript">
<!--
function urlCheck() {
if(
window.location.href=="address to check"
)
{
/* some code to load */
}else{
document.write('<div>testing my super loaded div code sample</div>')
}
}
urlCheck() /* autoLoadFunction */
//-->
</script>
now place the script where you want the content to be checked and loaded in your design.
Code Description
urlCheck,
is the name given to the function.
you can change it, if you do, change all urlCheck references within the code.
window.location.href,
this code returns the current address as http://...
use to identify certain pages you want the content to be loaded.
make as many if..else combinations as necessary.
document.write,
build the content to be loaded first,
and type with later in one unique line,
or create multiple document.write for each line of your content.
//
at the beginning of the line with<!--
or remove it from the line//-->
– simpleBob Jun 24 '13 at 8:11