Support Forums

stylizing smarty plugin output

This is a discussion on stylizing smarty plugin output within the v3.1 Modules & Modifications forums, part of the Legacy Help & Support category; Hi, I'm trying to add some mouseover styling to the table cells built by one of the smarty functions - ...


Go Back   68 Classifieds Forums > Archives > Legacy Help & Support > v3.1 Modules & Modifications

 
 
Thread Tools Display Modes
Old 04-13-2008, 09:47 AM   #1
Senior Member
 
Join Date: Jan 2007
Posts: 119
Rep Power: 14
HotAir is on a distinguished road
Default stylizing smarty plugin output

Hi,

I'm trying to add some mouseover styling to the table cells built by one of the smarty functions - in this case it's in 'function.feature_listings_horizontal.php'

My dilemma is how to add the effect I want:
Code:
//start td
$output .= "<td onMouseMove="this.style.background='#CAD8E6'" onMouseOut="this.style.background='#EBF0F5'"" . smarty_function_html_table_cycle_68('td', $td_attr, $c) . ">";
Obviously the double quotes in my added code mess this up. I tried escaping the doulbe quotes with backslash with no success.

Is there a way to add the desired code?

Thanks,
Jim
__________________
V3.1.10 Developer - live
V4.1.0 Beta 2 - sandbox
HotAir is offline  
Old 04-13-2008, 10:30 AM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,180
Rep Power: 121
Eric Barnes is a jewel in the rough
Default

Jim,

I would recommend doing it through the template file.
Code:
{feature_listings_horizontal number=8 cols=3 td_attr='onMouseMove="this.style.background='#CAD8E6'" onMouseOut="this.style.background='#EBF0F5'"'}
http://www.68classifieds.com/knowled...gs-horizontal/
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugin - Recently Viewed Eric Barnes Modules / Plugins / Modifications 19 06-05-2009 09:17 AM
Plugin - Category Tag Cloud Eric Barnes Modules / Plugins / Modifications 8 01-12-2009 04:14 PM
Module smarty plugins are not available marketingsolutions v3.1 Questions & Support 3 03-12-2008 10:33 AM
Smarty "or" variable? cwp Technical Support 2 03-03-2008 03:44 PM
Smarty Templates and You. Posted BY Lhotch Eric Barnes Templates, HTML, CSS, and Design Help 13 10-02-2007 09:06 AM


All times are GMT -4. The time now is 11:22 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0