Webmastersite.net
Register Log In

Java script in wrapper

Title Java script in wrapper
Description script will not run
Message Text The following code is being used on my web site and works fine in a file I call top.html which is inserted at the top of all the pages in my web site.

I have included the code of top.html in my WSN Links wrapper.tpl file so that it has the "look" of my other site pages.

When I insert this code in my wrapper.tpl code it does not run the script and display the text and link. I have a Google adsense script in the wrapper and it runs ok.

Any suggestions?

The code:

<div align="center">
<font face="Verdana" color="#0000FF">

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original: David Henry (davidputhenry@hotmail.com) -->
<!-- Web Site: http://www.davidphenry.com/ -->

<!-- Begin
function isPPC() {
if (navigator.appVersion.indexOf("PPC") != -1) return true;
else return false;
}
if(isPPC()) {
document.write('<b>Send <A CLASS="contact" HREF="mailto:\?subject\=Take a look at this page I found, ' + document.title + '?body=You can see this page at: ' + window.location + '" onMouseOver="window.status='Send your friends e-mail about this page'; return true" TITLE="Send your friends e-mail about this page">this page<\/A> to a friend</b>');
}
else { document.write('<b>Send <A CLASS="contact" HREF="mailto:\?body\=Take a look at this page I found, ' + document.title + '. You can see this page at: ' + window.location + '" onMouseOver="window.status='Send your friends e-mail about this page'; return true" TITLE="Send your friends e-mail about this page">this page<\/A> to a friend</b>');
}
// End -->
</script>

</font>
</div>
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership Rik
Views 609 views. Averaging 0 views per day.
Similar Topics
Submission Date Sep 05, 2005 - 11:41 AM