| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Regular | Smarty questions Hello, Question 1: I just download a free css template from somewhere else, but I an having problem to code it in to smarty. My problem is all div's background image that specify url in css style file not loading. example: in css style file PHP Code: PHP Code: Question 2: Alternative ad does not load in FireFox 2, but work for IE7. In tpl file have the following statement PHP Code: Firstly, I use literal tag for banner.tpl - no problem for this. Secondly, if I use literal tag in alt.htm then it will show the TEXT (in this case {literal}) in FireFox, but if I remove the tag then in FireFox show blank space (ad unit show in IE7). Hope anyone can understand my questions. Thanks in advance.
__________________ Price comparison Skincare and perfume Search product, compare price and spec then visit store |
| |
| | #2 (permalink) |
| Senior Member | i think theres something with having single quotes around background-image, so make it: background-image('images/bg_header.jpg'); and see if it works. i don't know much about smarty but you could see if your javascript has errors - sometimes IE and FF parse it differently.
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| |
| | #3 (permalink) | |
| NamePros Regular | Quote:
Anyone can help? Thanks.
__________________ Price comparison Skincare and perfume Search product, compare price and spec then visit store | |
| |
| | #4 (permalink) |
| NamePros Regular | Detected the problem and fixed. Just an update for those may also having the same problem. Question 1: Just because I place in wrong folder ![]() Question 2: To solve the problem just need to include full html tag in alternative file like below. PHP Code:
__________________ Price comparison Skincare and perfume Search product, compare price and spec then visit store |
| |
| | #5 (permalink) |
| Senior Member | lol glad you figured that stuff out. too bad we really couldn't have answered that first question at all. XD
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |