![]() |
Add Opacity to your images on mouse over with JavaScript
1 Attachment(s)
Also this is my first code that i share with other users here in vbulletin.org
With this simple script you can change the opacity display to your images and looks with tech style. I use this code to my homepage on vbadvanced modules but i think is not hard to use it and like bbcode for images. 1) Only for adv_portal template: Go to admincp/Style manager/choose your style<->expand style templates/Vbadvanced CMPS templates/adv_portal find: Code:
$footer Code:
<script language=JavaScript> 2) Go admincp/vBa CMPS/Edit modules Now if you have custome modules with images and you like to use the script you have only to add the code bellow to every image you like to display the script. Add to every image you like the bellow code: Code:
style="FILTER: alpha(opacity=40);-moz-opacity: 0.4; opacity: 0.4;" Code:
<img src="your_image_path" width="100" height="100" border="0" Save and finish :) |
Looks cool. Not something I need, but good effort mate
|
Nice work. Seems like there has to be another/easier way to pull this off though. But, looks very good on your site! :up:
|
nice work! love it!
|
Quote:
Then you just need a unique CSS identifier and four lines of CSS code for your images to get similar effects. |
How would I have to adapt this to make it work for vBCms instead ?
|
Quote:
Thanks! :up: |
Quote:
If any body knows about that will be great.:up: |
it is very simple. all you have to do is put in headerinclude the javascript code. then insert the other code to the image src so it makes it work for just that image. this way you can do it for any image basically.
|
All times are GMT. The time now is 01:53 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:
|