Back to vBulletin 3.7 Template Modifications

[Monkey's Works] - Ghost Images
Mod Version: 1.00, by Triky

This modification is in the archives.
vB Version: 3.7.0 Beta 3 Rating: (1 vote - 4.00 average) Installs: 7
Released: 27 Dec 2007 Last Update: Never Downloads: 1
Not Supported Template Edits Re-usable Code Translations  

[Monkey's Works] - Ghost Images
by Triky - http://www.web-city.it/

Hi there, guys and gals! I've foud this script: http://www.dynamicdrive.com/dynamicindex4/highlightgrad.htm. I've asked myself: "How do I use it all over my forum?". I've used a Replacement Variables!

Preview:

  • &stc=1&d=1198751637 (37.2 KB)
  • &stc=1&d=1198751637 (41.0 KB)


Preview (with ImageShack):

  • http://img265.imageshack.us/img265/3229/lightimagesscriptprevievs9.gif
  • http://img265.imageshack.us/img265/3103/lightimagesscriptpreviezc5.gif



Modification:

Go to your headinclude template
(AdminCp -> Styles & Templates -> Edit Templates -> headinclude)

Seacrh for:

Code:
<!-- / CSS Stylesheet -->
Below, add:

Code:
<script type="text/javascript">
/***********************************************
* Gradual Highlight image script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
var baseopacity=30
function slowhigh(which2){
imgobj=which2
browserdetect=which2.filters? "ie" : typeof which2.style.MozOpacity=="string"? "mozilla" : ""
instantset(baseopacity)
highlighting=setInterval("gradualfade(imgobj)",50)
}
function slowlow(which2){
cleartimer()
instantset(baseopacity)
}
function instantset(degree){
if (browserdetect=="mozilla")
imgobj.style.MozOpacity=degree/100
else if (browserdetect=="ie")
imgobj.filters.alpha.opacity=degree
}
function cleartimer(){
if (window.highlighting) clearInterval(highlighting)
}
function gradualfade(cur2){
if (browserdetect=="mozilla" && cur2.style.MozOpacity<1)
cur2.style.MozOpacity=Math.min(parseFloat(cur2.style.MozOpacity)+0.1, 0.99)
else if (browserdetect=="ie" && cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}
</script>
Save & Close.

Now go to your style options:
(vBAdminCp -> Styles & Templates -> Styles Manager -> Your style Name --> All style Options -> Go!)
In Additional CSS Definitions (second box), add:
Code:
.gradualshine{
filter:alpha(opacity=30);
-moz-opacity:0.3;
}
Save & Close.
Now, go to add a new Replacement Variable:
(vBAdminCp -> Styles & Templates -> Styles Manager -> Your style Name --> Replacement Variables -> Add -> Go!):

Search for text: <img
Replace with text: <img class="gradualshine" onMouseover="slowhigh(this)" onMouseout="slowlow(this)"

Save!
You're done! I hope you like it.

<!-- ------------------------------[Monkey's Works] - vBulletin.org Releases Archive---------------------------- -->

Modifications

<!-- / ----------------------------[Monkey's Works] - vBulletin.org Releases Archive---------------------------- -->

Download

No files for download.

Screenshots

Click image for larger version
Name:	LightImagesScript[Preview].jpg
Views:	1409
Size:	37.2 KB
ID:	73847   Click image for larger version
Name:	LightImagesScript[Preview]2.jpg
Views:	991
Size:	41.0 KB
ID:	73848  

Similar Mods

Forum Home Enhancements [Monkey's Works] - Hey, guest! You should be a registered member! vBulletin 3.6 Template Modifications
Mini Mods [Monkey's Works] - Registration Help Popups vBulletin 3.7 Add-ons
Forum Home Enhancements [Monkey's Works] - Play your Game when in Mainteinance vBulletin 3.6 Template Modifications
[Monkey's Works] - Registration Button vBulletin 3.6 Template Modifications
Forum Home Enhancements [Monkey's Works] - enCoded Navbar v1 vBulletin 3.6 Template Modifications

vblts.ru supports vBulletin®, 2022-2024