The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello,
I'm trying to add the logout function to a non-vB page. The prompt part is working, but I cannot seem to get the grayscale part to work. I am currently adding this code to my non-vB page.. Code:
<!-- function log_out() { ht = document.getElementsByTagName("html"); ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)"; if (confirm('$vbphrase[sure_you_want_to_log_out]')) { return true; } else { ht[0].style.filter = ""; return false; } } //--> </script> Code:
onclick="return log_out()" ![]() Any ideas? Is there something i'm missing that I need to include? |
#2
|
||||
|
||||
![]() Quote:
|
#3
|
|||
|
|||
![]()
Correct, i'm testing it in Internet Explorer
![]() any ideas? |
#4
|
|||
|
|||
![]()
Any idea on how to get this effect working in Firefox and Opera?
Not a big deal, but it would be nice. |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|