Welcome, Guest. Please Login or Register.
November 23, 2017, 06:12:09 AM
Home Help Search Login Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

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


Don't you just hate technology?


WWW
JavaScript in template.html
« on: March 18, 2004, 09:59:19 AM »
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, 10:01:06 AM by SalsaMAFIA » Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830



WWW
Re:JavaScript in template.html
« Reply #1 on: March 18, 2004, 12: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, 03: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, 05: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, 05: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  |  Topic: 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.0.12 | SMF © 2016, Simple Machines
Valid XHTML 1.0! Valid CSS!
Page created in 0.136 seconds with 19 queries.