Welcome to Geeklog, Anonymous Tuesday, January 07 2025 @ 10:18 pm EST
Geeklog Forums
Static Page and Javascript
cbrantly
Anonymous
Hey guys, I am working on a static page and ran into a problem.
I need to add some javascript functions inside of the head tag and I can't seem to find a way to do it. Also, I need to add an onLoad handler to the body tag of the page. Is there any way to do this using the Static Page plugin? I really need to have this page be behind the Geeklog security structure.
Thanks, Chad
I need to add some javascript functions inside of the head tag and I can't seem to find a way to do it. Also, I need to add an onLoad handler to the body tag of the page. Is there any way to do this using the Static Page plugin? I really need to have this page be behind the Geeklog security structure.
Thanks, Chad
7
6
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The site's header is provided by Geeklog and you can't really change anything in there from within a static page (you could select "blank page" and provide the header yourself, but that's probably not what you want).
You can have some custom code in CUSTOM_templateSetVars in lib-custom.php that checks which page you're on and only then defines a variable for the site header that contains your onLoad handler.
bye, Dirk
You can have some custom code in CUSTOM_templateSetVars in lib-custom.php that checks which page you're on and only then defines a variable for the site header that contains your onLoad handler.
bye, Dirk
8
6
Quote
All times are EST. The time is now 10:18 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content