This is a discussion on ADDING JAVASCRIPT with PHP??? within the osCMax v1.7 General Mods Discussion forums, part of the osCMax v1.7 Forums category; I am trying to add this on my Front Page and am having trouble on where to place the particular ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I am trying to add this on my Front Page and am having trouble on where to place the particular code?? Am I supposed to put this in application_top or includes/languages/english/index.php?? Random Images from a Directory Using PHP Any help is greatly appreciated. Thanks! Toni |
|
#2
| ||||
| ||||
| In osCMax v1.7, this code goes in the <head> section of your template's main_page.tpl.php: HTML Code: <script src="js/dw_rotator.js" type="text/javascript"></script> <script src="js/dw_random.js" type="text/javascript"></script> And the final bit of code would go on the actual template page where you want it to display: PHP Code:
__________________ Michael Sasek osCMax Developer osCMax Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
|
#3
| |||
| |||
| Ok, I must just be a spaz. I have tried the above and all I get on the main page is a red x. osCMax v2.0 Any suggestions?? Thanks Michael for your quick reply. |
|
#4
| ||||
| ||||
| The img src is showing up as variables so I think you need to make sure you have everything installed correctly. Also, my javascript console is showing these errors: Error: dw_RandRotator is not defined Source File: osCMax v2.0 Line: 14 I think you forgot to add something somewhere...or have the incorrect path to your php functions maybe Oh, and instead of saying thanks, click the Thanks! button in my post
__________________ Michael Sasek osCMax Developer osCMax Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
| The Following User Says Thank You to michael_s For This Useful Post: | ||
tonitonitoni2 (01-05-2007) | ||
|
#5
| |||
| |||
| Thanks Michael. I will try messing with it some more. OH, where would I put the <body onload="dw_Rotator.start()"> in application_top or main_page.tpl.php? |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Javascript Error | cherven | osCMax v2 Installation issues | 2 | 02-04-2007 11:30 PM |
| Javascript & BTS | gamerigs | osCMax v2 Customization/Mods | 2 | 11-06-2005 12:20 PM |
| Bizrate Javascript Code | Anonymous | osCMax v1.7 Discussion | 0 | 11-08-2003 04:19 AM |
| Javascript Error | jgkiefer | osCMax v1.7 Discussion | 0 | 09-23-2003 05:55 AM |
| javascript integration | bushman | osCMax v1.7 Discussion | 3 | 09-16-2003 10:12 AM |