Gegen Bilderklau - Das Original (https://www.gegen-bilderklau.net/index.php)
- Design, Website, Copyright (https://www.gegen-bilderklau.net/board.php?boardid=80)
--- Homepagehilfe (https://www.gegen-bilderklau.net/board.php?boardid=27)
---- Homepagehilfe - Archiv (https://www.gegen-bilderklau.net/board.php?boardid=139)
----- [JS] Taschenlampe (https://www.gegen-bilderklau.net/thread.php?threadid=79185)


Geschrieben von Elincia am 01.09.2006 um 19:29:

Augenzwinkern Taschenlampe

Hallo

Ich habe auf meinem vRh ein Spiel eingebaut, das mit der Taschenlampe. Man muss über ein dunkles Bild fahren und eben einen schriftzug erkennen.

Nun wollte ich mal fragen, ob man die Größe des 'Lichtes' ändern kann? Denn so wie es momentan ist, ist es sehr schwer überhaupt was zu erkennen..

Habe den Code mal irgendwo gefunden, keine Ahnung wo das war. Ich stell ihn mal rein.

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
<p align="center"><!--webbot bot="HTMLMarkup" startspan --><style>
<!--

#myimage{
filter:light
}

-->
</style>
<!--webbot
bot="HTMLMarkup" endspan --></p>

<p align="center"><!--webbot bot="HTMLMarkup" startspan --><p align="center">
<img id="myimage" src="taschenlampe1.jpg">
<script language="JavaScript1.2">

//Image spotlight effect- By Erik F (die_schlampe@hotmail.com)
//Code enhancements by Dynamicdrive.com
//Visit http://www.dynamicdrive.com for this script

s = 9; // the size of the spotlight
vp = 4; // the visibility percent of the picture
startx = 0; // the top position of your sportlight into the image (on start)
starty = 0; // the left position of your spotlight into the image (on start)


//////////////////////////////////////////////////////////////////
//        No need to edit below this line            //
//////////////////////////////////////////////////////////////////

var IE = document.all?true:false

function moveL()
{
xv = tempX;
yv = tempY;
myimage.filters.light.MoveLight(1,xv,yv,s,true);
}

if (IE&&myimage.filters)
document.all.myimage.onmousemove = getMouseXY;
var tempX = 0
var tempY = 0


function getMouseXY(e) {
tempX = event.offsetX
tempY = event.offsetY

  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}
  if (t)
  {
   moveL();
  }

  return true
}

var xv = startx;
var yv = starty;
var t= true;
if (IE&&myimage.filters){
myimage.style.cursor="hand";
myimage.filters.light.addAmbient(55,55,55,vp)
myimage.filters.light.addPoint(startx,starty,s,300,300,300,300)
}

</script>
<!--webbot
bot="HTMLMarkup" endspan --></p>&nbsp; </p>
      </div></td>
    </tr>
  </table>
  <p><br>
  </p>
  <p>&nbsp;</p>
</div>


Kann mir wer helfen? großes Grinsen

Man kann es sich auch +hier+ anschauen.



Geschrieben von Elincia am 01.09.2006 um 19:45:

 

Danke fröhlich

Kenn mich mit solchen Codes nicht so gut aus Augenzwinkern Aber nun hats geklappt, super!


Forensoftware: Burning Board, entwickelt von WoltLab GmbH