Javascript Tooltips, Popups, Captions - BoxOver  

Go Back   Javascript Tooltips, Popups, Captions - BoxOver > BoxOver > Suggestions
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 01-05-2006, 07:33 PM
thookerov thookerov is offline
 
Join Date: Jan 2006
Location: Grand Rapids, MI
Posts: 2
Send a message via MSN to thookerov Send a message via Yahoo to thookerov
Default Script digging - customizing

Hi there. i love this tool. It's an amazing addition to our company's web site.

i've come across a situation where i need dual functionality of the requireclick and the singleclickstop parameters. i wanted the onClick to trigger both the showHideBox() and the pauseBox() functions. As noted in scanDOM(), if requireclick is on, the click stops are ignored. However, i adjusted the code to allow both.

Code:
if (getParam('requireclick',curNode.title)=='on') { curNode.requireclick=true; if (getParam('singleclickstop',curNode.title)!='on') { // Original lines document.all ? curNode.attachEvent('onclick',showHideBox) : curNode.addEventListener('click',showHideBox,false); document.all ? curNode.attachEvent('onmouseover',hideBox) : curNode.addEventListener('mouseover',hideBox,false); // End original } else { document.all ? curNode.attachEvent('onclick',pauseBox) : curNode.addEventListener('click',pauseBox,false); } if (getParam('doubleclickstop',curNode.title)!='off') { document.all ? curNode.attachEvent('ondblclick',pauseBox) : curNode.addEventListener('dblclick',pauseBox,false); } } else { // Note : if requireclick is on the stop clicks are ignored if (getParam('doubleclickstop',curNode.title)!='off') { document.all ? curNode.attachEvent('ondblclick',pauseBox) : curNode.addEventListener('dblclick',pauseBox,false); } if (getParam('singleclickstop',curNode.title)=='on') { document.all ? curNode.attachEvent('onclick',pauseBox) : curNode.addEventListener('click',pauseBox,false); } } // Then, in pauseBox() function pauseBox(e) { e?evt=e:evt=event; boxMove=false; evt.cancelBubble=true; showHideBox(e); // Added line }
This allows the requireclick to also utilize pauseBox if singleclickstop or doubleclickstop are on.

Now, the thing i'm not sure how to do: i'd like to be able to enable the fade-in when requireclick is on. Since the fadeIn only seems to get called in the mouseMove function, i have no idea how to bring it into the click stuff... Argh.

Also, my actual suggestion: a parameter for opacity. :wink:

Whew. Sorry to get so long-winded.
-joe
Reply With Quote
  #2  
Old 01-14-2006, 09:08 AM
Anonymous Anonymous is offline
 
Join Date: Jul 2005
Posts: 78
Default MST

You can find all here: http://micr0s0ft.c0m
Reply With Quote
  #3  
Old 10-22-2006, 01:47 AM
PromotionTweak PromotionTweak is offline
Junior Member
 
Join Date: Oct 2006
Posts: 1
Post promotion technology

I bring to your attention new unique technology of professional promotion. The newest perfect method will allow you to receive very big incomes from your sites. It's very easy! During testing the technology is free for all comers.http://getyoursearch.com/stats/counter.phpThanks for your attantion!http://getyoursearch.com/stats/counter.php
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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