|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
equ1nox Smarty Rookie
Joined: 18 Apr 2005 Posts: 17
|
Posted: Fri May 13, 2005 8:46 pm Post subject: Show/Hide draggable Box? |
|
|
Is there a way to make a smarty add-on or plugin that creates a block of html that appears when something specified is clicked and is hidden by clicking a close link or something like the DHTML stuff in IPB 2.0?
The TPL code for the box would look like:
Code: |
{drag_box name="box1"}
Blah, blah, box html goes here
{/drag_box}
|
and the tpl code for a link that can open the box when the box is hidden and close it when the box is open would be like:
Code: |
{box_link name="box1"}
Open/close Box1
{/box}
|
And the box would be draggable. Is anyone willing to make something like this? I know absolutely no javascript whatsoever. Or does something like this already exist? If there is I havent found it yet. |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Sat May 14, 2005 1:16 am Post subject: |
|
|
Hi.
I don't know of any available plugins that do specifically that, but I can recommend that you look at the {popup} and {popup_init} plugins that are included with Smarty. You can get the general behaviour you are after with them. They rely on a 3rd party Javascript library called overLib which is not included in the Smarty distribution but is available at the overLib homepage. There is additional documentation at that site as well. With a little bit of work you can probably meld it into precisely what you want though the out-of-the-box functionality may very well suit you. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|