![]() |
Add image fade effect to attached thumbnails
This will add a pretty image fade effect to attached thumbnails, and will also let you add the effect to any image you want simply using the class="fade" tag.
*Confirmed working on FireFox and Internet Explorer Only* For Opera see this postSafari see this post 1. open AdminCP -> Styles And templates, then Main CSS, Scroll down to Additional CSS and enter this in the box Code:
.fade img { 3. Go To Postibit Templates -> postbit_attachmentthumbnail. After the first <a add Code:
class="fade" End refult of postbit_attachmentthumbnail should look similar to this Code:
<a class="fade" href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>><img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1&thumb=1&d=$attachment[thumbnail_dateline]" border="0" alt="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]" 4="$attachment[attachmentid]">$vbphrase[image_larger_version_x_y_z]</phrase>" /></a> Working demo:Will have to scroll a little to get to the attached thumbnails http://www.fightrice.com/forums/showthread.php?t=8635 Dont forget to click install, and if you really like it, making a nice link back to me in your footer would be lovely :D |
First ...:) Thanks I'll try
|
great hack, doesnt work with Opera but looks fine in Mozilla and IE
|
It's sort of a "rollover" effect? Thumbnails are faded, until you put your cursor over them in which case they unfade.
Quote:
|
Does it work fine on Firefox?
|
works on FireFox and IE for sure,
Reports say it doesnt work in Safari, or Opera, but it shouldnt mess anything up if it doesnt work |
Quote:
Add... HTML Code:
opacity: .50; HTML Code:
opacity: 1; |
Not sure about this one, but add...
HTML Code:
-khtml-opacity: 0.5; HTML Code:
-khtml-opacity: 1; |
Thanks, soon as someone can confirm that i'll be glad to update install instructions
|
Well, I can confirm the first one I posted as I'm using Opera 9 myself and opacity works like a charm. It is the second one I'm not sure about since I have no access to a Mac - but the khtml-opacity property is reported to work in Safari.
|
All times are GMT. The time now is 06:48 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|