|
|
Thread Tools | Display Modes |
|
#1
|
|
|
Scripting dude-volunteer
|
Change lightbox to default to comments visible
To change the default position of the lightbox so that the comment section starts out open instead of closed, copy this script into your bottom javascript:
Code:
//-------------------------------------------------------------------------------------
// Function to set initial lightBoxComment value to open
//
// The way this works is it sets the default value to open, but if the user
// closes it, then it will remember their value for the next day. After a day
// passes, it will default to open again.
//
// See http://www.dgrin.com/showthread.php?p=1368806 for support or questions.
//-------------------------------------------------------------------------------------
function InitLightBoxDefaultValueToOpen()
{
if ((SM.util.getCookie('lightBoxDefaultSet') != 1) || !SM.util.getCookie('lightBoxComments'))
{
SM.util.setCookie('lightBoxDefaultSet', 1, 1); // signify that we've set a default value so we won't keep setting it
SM.util.setCookie('lightBoxComments', 1, 1); // set it to show the light box comments
}
}
InitLightBoxDefaultValueToOpen();
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
|
#2
|
|
|
Always grinning
|
Errrrrr.....almost perfect....
Now it opens where I want it to, but the thumbs up/down does not appear unless you hover over the photo. Is it possible for it to open to "show details" AND have the thumbs appear? May I please have my cake and eat it too? |
|
|
|
|
#3
|
||
|
Scripting dude-volunteer
|
Quote:
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question Last edited by jfriend; Apr-13-2010 at 06:50 PM. |
|
|
|
||
|
#4
|
|
|
Always grinning
|
I thought it automatically shows in the default view, but now realize it is just because the mouse will automatically be over the photo in that view. With the comments showing, it places the photo to the left so the thumbs do not appear (no hover).
Thank you for your help. |
|
|
|
| Tell The World! | |
| Thread Tools | |
| Display Modes | |
|
|