11
JMorris
Re: XOOPS & HTML
  • 2006/4/24 0:54

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Ok, this isn't too bad, just a couple syntax errors.

In theme.html, change the following code

Change
</head>
<
body>

To
<SCRIPT LANGUAGE="JavaScript">
function 
popUp(URL) {
day = new Date();
id day.getTime();
eval(
"page" id " = window.open(URL, '" id "', 'toolbar=1,scrollbars=1,location=1,statusbar=0,menubar=1,resizable=1,width=300,height=300');");
}
</
script>
</
head>
<
body onLoad="java script:popUp('http://bgtop.net/in.php/1143591795')">


NOTE: Take the space out of java script. It should be javascript, but the Protector module sanatizes the code when this post is parsed.

Don't forget to empty the contents to the templates_c folder or your changes won't take effect immediately.

Hope this helps.

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

12
m0nty
Re: XOOPS & HTML
  • 2006/4/24 0:56

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


<BODY onLoad="java script:popUp('http://bgtop.net/in.php/1143591795')">

u missed a closing double quote "

13
m0nty
Re: XOOPS & HTML
  • 2006/4/24 0:58

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


also be sure to empty templates_c folder after u edit theme.html or your changes will not be compiled..

Login

Who's Online

148 user(s) are online (94 user(s) are browsing Support Forums)


Members: 0


Guests: 148


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits