Welcome, Guest. Please Login or Register.
November 26, 2024, 11:54:10 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  JavaScript in template.html « previous next »
Pages: [1] Reply Ignore Print
Author Topic: JavaScript in template.html  (Read 6111 times)
SalsaMAFIA
Noobie
*
Posts: 8


Don't you just hate technology?

WWW
JavaScript in template.html
« on: March 18, 2004, 02:59:19 PM »
Reply with quote

YaBB SE Version: 1.4.0 or 1.4.1
Server Platform: Unix, Linux, or BSD
Link to Forum: http://www.salsamafia.com:8080/yabbee

Problem Description:
A dumb question - in fact, I've searched the forum and it appears no-one is nearly so dumb - but can I include JavaScript in the template that I see from the admin page?  I see lots of talk of including JavaScript but I don't see where I do it!

I tried adding some JavaScript (that I know works) in the <HEAD> block, then calling one functions from the <BODY ..> statement:

<BODY ONLOAD="LoadStuff()" ..>

And calling another function when an image in the body of the page is clicked on:

<A HREF="#" onClick="BannerClick();return false;"><IMG NAME="Banner" SRC='http://www.salsamafia.com/images/BannerBlank.jpg'></A>

But it doesn't work: the image doesn't appear and the JavaScript doesn't appear to run .. There are no error messages.

Any clues - preferably in words of no more than one syllable - gratefully received!

Thanks!
« Last Edit: March 18, 2004, 03:01:06 PM by SalsaMAFIA » Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:JavaScript in template.html
« Reply #1 on: March 18, 2004, 05:46:22 PM »
Reply with quote

I don't see any such javascript code in the template...

-[Unknown]
Logged
SalsaMAFIA
Noobie
*
Posts: 8


Don't you just hate technology?

WWW
Re:JavaScript in template.html
« Reply #2 on: March 19, 2004, 08:26:21 AM »
Reply with quote

Sorry!

I removed the code because it wasn't doing anything .. I'll put it back ..

>> OK .. I'll put it back when my site's back up ..
« Last Edit: March 19, 2004, 10:04:09 AM by SalsaMAFIA » Logged
SalsaMAFIA
Noobie
*
Posts: 8


Don't you just hate technology?

WWW
Re:JavaScript in template.html
« Reply #3 on: March 19, 2004, 10:41:24 AM »
Reply with quote

Well, I'll be!

I put the code back in and .. it worked!

Sorry to have wasted your time ..
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  JavaScript in template.html « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.050 seconds with 21 queries.