
LiquidQuest
User
Aug 17, 2006, 2:19 AM
Post #1 of 6
(2297 views)
Shortcut
|
|
problem with art_field insertion into page
|
Can't Post
|
|
im trying to use a javascript in my client's page, allowing them to have a mouseover effect which loads large images of any article image thumbnail. the script works fine on my computer without incorporating it into AM... i made a custom template for headlines to use that javascript, which relies on two <DIV> tags. this is the following code in my template:
<img src="$art_field6$" style="border:1px solid #8a0814;" onMouseOver="showtrail('$art_field7$','',500,500)" onMouseOut="hidetrail()" border="0"> <div style="display: none; position: absolute; z-index: 110; left: -500px; top: 222px;" id="preview_div"><div class="border_preview" style="width: 460px; height: 504px;"><div style="display: none; visibility: hidden;" id="loader_container"><div id="loader"><div align="center">Loading Image Preview</div><div id="loader_bg"><div style="left: 0pt; width: 6px;" id="progress"> </div></div></div></div><h2 class="title_h2">$art_name$</h2><div class="preview_temp_load"><img onload="javascript:remove_loading();" src="$art_field7$" border="0"></div></div></div> im also using PUBLISHCRON.CGI to take that template and generate a static page for these article types. whats weird is that publishcron doesn't insert the values where ART_FIELD tags are located like it did for $ART_NAME$ tag, and it also changed the javascript values at the end of the second DIV... see what i mean here:
<img src="" style="border:1px solid #8a0814;" onMouseOver="showtrail('','',500,500)" onMouseOut="hidetrail()" border="0"> <div style="display: none; position: absolute; z-index: 110; left: -500px; top: 222px;" id="preview_div"><div class="border_preview" style="width: 460px; height: 504px;"><div style="display: none; visibility: hidden;" id="loader_container"><div id="loader"><div align="center">Loading Image Preview</div><div id="loader_bg"><div style="left: 0pt; width: 6px;" id="progress"> </div></div></div></div><h2 class="title_h2">Annan sends envoys to Middle East</h2><div class="preview_temp_load"><img onload="op_stop();javascript:remove_loading();;op_start();" src="" border="0"></div></div></div> i have disabled the XSS FILTER, and its still not working. dont know what to do to fix this. any help? Marssin
(This post was edited by LiquidQuest on Aug 17, 2006, 2:37 AM)
|