html_wrap not doing what I want.
|
danando
Joined: 2008-10-01
Posts: 1 |
Posted: Thu, 2008-10-02 00:06
|
|
Hi there, I'm relatively new to Gallery 2, but I'm trying to embed G2 into my website, and when i enter the code as shown in the tutorials, and then save it, the page outputs a white screen. Here is the code: Quote:
{* The page i am trying to embed gallery into is here Any help would be greatly appreciated. Thanks in advance. |
|

Posts: 27300
Your code your quted has:
{* Include this theme's style sheet *} <link rel="stylesheet" type="text/css" href="{g->theme url="theme.css"}"/> function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; }You dont start the javascript tag. yet you end it lower in the page.
Also when adding JS code to templates you need to read up on:
http://www.smarty.net/manual/en/language.function.literal.php
or
http://www.smarty.net/manual/en/language.function.ldelim.php
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team