background preloader

Ajax / javascript

Facebook Twitter

jQuery

3d on web. Frameworks. Canvas Tutorial - Introduction. Welcome! In this tutorial, we're going to create a breakout clone that you can play in your browser, using javascript and the In order to use this tutorial, you'll need a browser that supports the <canvas> element. Before you read any further, click on the "run code" button on the left to play the game that we'll end up creating. On every page, you'll be able to click the "run code" button to run the code we've developed so far. Every page besides this one has an editor in it containing the javascript code that will be run in the same box as the game as soon as you click the button. You can make changes to the code, and see the results instantly by clicking the "run code" button.

In order to make our lives easier, I've included the jQuery framework in every page, which extends javascript in your browser with some useful methods. If you have any comments or questions, feel free to leave a comment on the "comments" tab. next. Drawing shapes - MDC. <canvas> - Tangram. Tangram ist ein altes chinesisches Legespiel, das Anfang des 19-ten Jahrhunderts auch in Europa und Amerika Verbreitung fand. Ziel des Spiels ist es, aus den sieben Einzelfiguren ein Quadrat zu legen. Die Idee, das Spiel in einer Online-Variante zur Verfügung zu stellen, wurde aufgrund einer Nachfrage geboren, die mir im Rahmen dieses <canvas>-Projekts gestellt wurde. Zunächst wurde es derart umgesetzt, dass jeder Figur ein <canvas>-Element spendiert wurde. Nachteilig war die dadurch entstehende rechteckige Grundstruktur und die damit einhergehenden Probleme beim Selektieren von nicht-rechteckigen Elementen.

Nachdem eine Routine implementiert wurde, die es ermöglicht, zu erkennen, ob sich der Mauszeiger über einer Figur befindet, wurde der Programmcode neu geschrieben. Beispiel Die verfügbaren Möglichkeiten, das Spiel zu steuern, finden sich in der nachstehenden Liste.Dabei gilt:• Element = Quadrat, Dreieck, Parallelogramm • Figur = Kombination der zur Verfügung stehenden Elemente Mit: Mobile Browser ID Strings (a.k.a. User Agent ID) The non-mobile stuff is here (hint: you get jerked back by the power cord after 3 feet and your arms start to ache after 10 minutes with non-mobile stuff) or click on any right menu link for the browser/section.

We started these pages with four strings because we had never seen a comprehensive list anywhere. Nominally RFC 1945 and RFC 2068 define them (get RFCs) but only as an afterthought (the RFCs define HTTP 1.0 and 1.1). Browser IDs, more correctly User Agent IDs, appear, among other places, as the environmental variable HTTP_USER_AGENT in Apache. You need this information to make the fewest checks possible for the browser environment or to optimise the display or ... to know who and what is crawling around your site. And if you want to check your browser string use our cheap trick page. New Stuff: It's been a loooong time since we did an update. Department of useless stuff: Anyone know the difference between Open Mini and Mobile...no it's not the beginning of a joke. Notes: Dolphin.

Search

Animating with Javascript - An article to get you started on Jav. Animating elements with Javascript using DOM compliant, non-invasive code Color fading and resizing to notify user for dynamic changes created on 29.08.2005 Javascript animations are seen more and more in our daily web routines. Most can be annoying too, if they simply serve the purpose to lamely look cool, while they may actually only distract the user.

However, when used properly, they can really add to the user experience, and increase the useability of your site. Fade, single direction, no memory Hover over me! Fade, both directions, w / memory Resize, both directions, w / memory Move objects, w / memory Click Me! This technique uses for animation. Here is a step by step explanation of the function, please hover for highlighting the step: Here's a brief explanation of variables used: here refers to the fact that the animation will be able to handle from a previously terminated or finished animation, and that for each step, will be embedded to the object.

Javascript. JavaScript Script & Programs | Hot Scripts. Cool Table Menu Table menu JavaScript that lights up when the mouse moves over its items. Rated 4.02 out of 5 (94 total ratings) COOLjsMenu Advanced JavaScript cross-browser drop-down menu. Rated 4.27 out of 5 (521 total ratings) Amazing Frameless Popup Window with No Titlebar Opens a popup window in IE browsers with no Windows frame or titlebar. Rated 3.56 out of 5 (1115 total ratings) Drop Down Menu from Top of Page A configurable drop down menu from the top of the page. Rated 4.01 out of 5 (145 total ratings) JS calendar Cool, CSS-customizable date/time picker. Rated 4.74 out of 5 (13424 total ratings) JavaScript Kit- Your comprehensive JavaScript, DHTML, CSS, and A.