booyeeka
Junior Member
Posts: 4
Registered: 4/6/2007
Member Is Offline
|
| posted on 1/6/2008 at 11:10 AM |
|
|
having trouble with defining ITEMS
hi all!
i woulud like to escape using file *.tpl.js.
i decide that in file scroll.html create array variables used in tpl file.
scroll.html file:
....
document.write("<link rel='stylesheet' href='scroll" + n_id + ".css'>");
var LOOK = {...},
BEHAVE = {...},
ITEMS = [...]
....
but that not work. can you help me how to achive this?
i need it cause i want to generate items using php code.... post item i founded on this forum is not clear enough for me and i decided to try this
way.
thank you in advance!
|
|
|
tigra
Administrator
Posts: 1990
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 1/7/2008 at 02:05 AM |
|
|
That should work. See the JS console for the error messages.
Also remember that scroll.html should become scroll.php if you plan to dynamically generate its content.
|
|
|