|
|
#1 |
|
Member
Join Date: Nov 2008
Posts: 64
Rep Power: 3 ![]() |
Hi Guys,
I'm using a javascript which enables pngs to show properly in ie6, and it does, but only after pressing refresh. I'm wondering if I've code it properly with the literal tags and also, on another page, php echo tags: smarty {literal} <script type='text/javascript'> $(document).ready(function(){ $(document).pngFix(); }); </script> {/literal} php <?php echo "<script type='text/javascript'>"; echo "$(document).ready(function(){"; echo "$(document).pngFix();"; echo "}); "; echo "</script>"; ?> |
|
|
|
|
|
#2 |
|
Member
Join Date: Nov 2008
Posts: 64
Rep Power: 3 ![]() |
Sorry, just saw the FAQ on templates, so I was doing the literal tags right.
|
|
|
|
|
|
#3 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,776
Rep Power: 110 ![]() |
From what you posted everything looks correct. I have no idea why it wouldn't be working.
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Mar 2006
Posts: 4,114
Rep Power: 100 ![]() ![]() |
It may help to know what template and where in the template you placed this.
__________________
Larry. (Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free) Set your site apart from the competition with one of my modules...... Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
|
|
|
|
|
#5 |
|
Member
Join Date: Nov 2008
Posts: 64
Rep Power: 3 ![]() |
used the smarty one in the layout.tpl just above the close header tag:
{literal} <script type='text/javascript'> $(document).ready(function(){ $(document).pngFix(); }); </script> {/literal} {$header} {modulehook function="tpl_layout_head" options=""} </head> |
|
|
|
|
|
#6 |
|
Moderator
Join Date: Mar 2006
Posts: 4,114
Rep Power: 100 ![]() ![]() |
Where is the pngfix function comming from? Are you loading it in the head of the document?
__________________
Larry. (Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free) Set your site apart from the competition with one of my modules...... Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
|
|
|
|
|
#7 |
|
Member
Join Date: Nov 2008
Posts: 64
Rep Power: 3 ![]() |
just above it in the header:
<script type="text/javascript" src="javascript/jquery/jquery.pngFix.js"></script> |
|
|
|
|
|
#8 |
|
Moderator
Join Date: Mar 2006
Posts: 4,114
Rep Power: 100 ![]() ![]() |
Can you supply a link to yoru site?
__________________
Larry. (Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free) Set your site apart from the competition with one of my modules...... Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
|
|
|
|
|
#9 |
|
Member
Join Date: Nov 2008
Posts: 64
Rep Power: 3 ![]() |
i used this intead:
$(function(){$('div.logo').pngFix();}); Last edited by DGiscombe; 04-13-2009 at 09:30 AM. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can I add javascript to my site? | Plamen | v4 Questions & Support | 2 | 09-03-2008 11:31 AM |
| Javascript question | canariasdata | v4 Questions & Support | 7 | 06-17-2008 10:38 AM |
| Javascript - HELP!! | objelland | v3.1 Questions & Support | 18 | 03-31-2008 06:55 AM |
| Javascript Problem | pschievink | v3.1 Questions & Support | 4 | 08-28-2007 07:14 AM |