Interesting Javascript I came across... Interesting Javascript I came across...
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Interesting Javascript I came across...

Started by jasendorf, October 30, 2003, 08:26:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jasendorf

I thought this Javascript I came across looked kind of interesting...

See a sample here:

http://www.338tharmyband.com/highlight.html

Could be used on thumbnail photos to create an interesting effect...  just a thought.

John
Read the Online DOCs,FAQ, and SEARCH the board BEFORE posting questions for help.

lasa

Nice effect.
I think it is nice with a litte blending, not much.

Here is the code:

<SCRIPT language=JavaScript1.2>
function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=30
}
function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}
</SCRIPT>


<img onMouseOver=high(this) style="FILTER: alpha(opacity=30)" onMouseOut=low(this) src="image.jpg" width="100" height="100" />

rbl

Mind you that it's IE Win only, if I'm not mistaken.
I use the same effect on my site for visited photos.

Titooy


rbl

Very nice! =)
Works on Mac with mozilla based browsers also.

Tarique Sani

Quote from: "Titooy"Here is another version that works with IE and NS7
http://www.ceciledefrance.net/photo2.php?section=photo&theme=film&fiche=9
(but still not with Opera)
Well atleast it mozilla the shading back works only if I mouse over to the next  picture - as long as it doesn't give a JS error in any browser it can be used....

However making it main stream - I am a bit reluctant
SANIsoft PHP applications for E Biz

jasendorf

I just thought it was interesting that's all...   not trying to force it into CPG...
Read the Online DOCs,FAQ, and SEARCH the board BEFORE posting questions for help.

Joachim Müller

I think many people are interessted in such stuff, although it doesn't belong in Coppermine mainstream.
If it's done properly, it won't hurt any browser that can't display it, so why not make a mod out of it and post it in the mods/addon board?

GauGau

Tarique Sani

Yes a mod would be great!! I would like to see it in the flimstrip as well :)
SANIsoft PHP applications for E Biz

Tarique Sani

Yes a mod would be great!! I would like to see it in the flimstrip as well!\

Psstt... John I am not accusing you, stressed out? ;)
SANIsoft PHP applications for E Biz