Entries tagged with “JavaScript”.


VS.PHP

Ein sehr guter PHP Editor inklusive Debugging-, Deployment- und (Smarty)-Template-Unterstützung heißt VS.PHP von Jcx.Software.

Außerdem gibt es 4 verschiedene Versionen:

    1. VS.Php Standalone Edition
      VS.Php for Visual Studio 2005
      VS.Php for Visual Studio .Net 2003
      VS.Php for Visual Studio .Net

Besonders die Integration in Visual Studio ist sehr interessant.

Das sagt Jcx.Software dazu:

If you are a .Net developer you may wonder why VS.Php? Php is one of the most popular languages for developing web applications. In fact, the Php community has the largest pool of rich open source applications, frameworks and resources to make your development life easier. VS.Php lets those who enjoy using Visual Studio use their favorite IDE for Php development. VS.Php also provides many unique features by leveraging the Visual Studio IDE like Php/Javascript debugging.

[Quelle: Jcx.Software]

Bilder vorladen geht mit JavaScript so:


<script type="text/javascript">
if (document.images) {
var bild01 = new Image().src = "images/bild01.jpg";
var bild02 = new Image().src = "images/bild02.jpg";
}
</script>

Das Ansprechen des Scroll-Rads der Maus mit JavaScript kann durch folgenden Code einfach umgesetzt werden:


<html>
<head>
<script type="text/javascript">
function handle(delta) {
var s = delta + ": ";
if (delta < 0)
s += "down";
else
s += "up";
document.getElementById('delta').innerHTML = s;
}
function wheel(event){
var delta = 0;
if (!event) event = window.event;
if (event.wheelDelta) {
delta = event.wheelDelta/120;
if (window.opera) delta = -delta;
} else if (event.detail) {
delta = -event.detail/3;
}
if (delta)
handle(delta);
}
/* Initialization code. */
if (window.addEventListener)
window.addEventListener('DOMMouseScroll', wheel, false);
window.onmousewheel = document.onmousewheel = wheel;
</script>
</script></head>
<body>
<div id="delta">Scroll mouse wheel to see delta here.</div>
</body>
</html>

Quelle: [http://adomas.org/javascript-mouse-wheel/]