RPG Page script
2 posters
Page 1 of 1
RPG Page script
I have made a script for so it displays a message based on the url. However, I'm having some trouble getting the script to work...
I want the script to display a message on a specific user's RPG page. It works partly, but the message only shows when generating the RPG page, not viewing it.
Can anyone tell me what is wrong with the script? It's not putting the message on the right url for some reason...
(I added this to the RPG page template)
I want the script to display a message on a specific user's RPG page. It works partly, but the message only shows when generating the RPG page, not viewing it.
- Code:
<script type="text/javascript" language="JavaScript">
function beginLocal(url)
{
url = document.URL;
if (url)
document.writeln("\<!--");
}
function endLocal(url)
{
url = document.URL;
if (url)
document.writeln("--\>");
}
</script>
- Code:
<script type="text/javascript">
beginLocal(/u1rpgsheet);
</script>
<p>test</p>
<script type="text/javascript">
endLocal(/u1rpgsheet);
</script>
Can anyone tell me what is wrong with the script? It's not putting the message on the right url for some reason...
(I added this to the RPG page template)
JDC- Forumember
- Posts : 46
Reputation : 0
Language : English
Re: RPG Page script
Please? I would need help with this.
JDC- Forumember
- Posts : 46
Reputation : 0
Language : English
Re: RPG Page script
Your function isn't being called upon.
You need to add this to your head or body tag:
You need to add this to your head or body tag:
- Code:
<body onload="beginLocal()">
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Similar topics
» embed Script code in forum? (<script </script>)
» [JAVA script]How to set a countdown script to forum/portal?
» A script...
» Can someone help me a script?
» How to Add a PHP script to "the root of my forum script" ?
» [JAVA script]How to set a countdown script to forum/portal?
» A script...
» Can someone help me a script?
» How to Add a PHP script to "the root of my forum script" ?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum