Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Interesting Javascript I came across...  (Read 9396 times)

0 Members and 1 Guest are viewing this topic.

jasendorf

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 350
    • http://www.338tharmyband.com
Interesting Javascript I came across...
« on: October 30, 2003, 08:26:15 pm »

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
Logged
Read the Online DOCs,FAQ, and SEARCH the board BEFORE posting questions for help.

lasa

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 84
    • Fotos.LaSa.nl
Interesting Javascript I came across...
« Reply #1 on: October 30, 2003, 08:46:53 pm »

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

Here is the code:
Code: [Select]

<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>

Code: [Select]

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

rbl

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 60
    • http://lomoblog.com/
Interesting Javascript I came across...
« Reply #2 on: October 30, 2003, 08:57:55 pm »

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

Titooy

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 736
    • under construction...
Interesting Javascript I came across...
« Reply #3 on: October 30, 2003, 11:04:26 pm »

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)
Logged

rbl

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 60
    • http://lomoblog.com/
Interesting Javascript I came across...
« Reply #4 on: October 30, 2003, 11:08:18 pm »

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

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Interesting Javascript I came across...
« Reply #5 on: October 31, 2003, 04:03:45 am »

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
Logged
SANIsoft PHP applications for E Biz

jasendorf

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 350
    • http://www.338tharmyband.com
Interesting Javascript I came across...
« Reply #6 on: October 31, 2003, 05:17:53 am »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Interesting Javascript I came across...
« Reply #7 on: October 31, 2003, 05:46:29 am »

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
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Interesting Javascript I came across...
« Reply #8 on: October 31, 2003, 07:22:38 am »

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

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Interesting Javascript I came across...
« Reply #9 on: October 31, 2003, 07:23:50 am »

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? ;)
Logged
SANIsoft PHP applications for E Biz
Pages: [1]   Go Up
 

Page created in 0.031 seconds with 20 queries.