Posts Tagged ‘element

html5media Script Renders in Any Browser:

As you’re probably aware, the element isn’t natively supported by all browsers (yet). This was the only missing piece in my attempt to make the Colosseo site fully HTML5, and it meant embedding the “making of” video via Vimeo (Flash) rather than storing it server-side and using something like the SublimeVideo player for playback.

Dave Hall’s html5media script is a transitional solution that allows you to use in your markup, and browsers that don’t yet support it will be fed a Flash-based player.

/via Daring Fireball

Go to Source

When building a navigation menu, or any other jQuery script, it is often necessary to have a robust method with which to define a mouse over and mouse out state. This is where the hover() method comes along. Here is how it is used:

$('.selectorClass').hover(
function(){
	$(this).stop().fadeTo('slow',0.4);
},
function(){
	$(this).stop().fadeTo('slow',1);
});

This assigns the first function to be executed when the mouse moves above the elements on the page, which share the selectorClass class name, and the second one is executed when the mouse moves away.

You can use “this” inside of the functions, to access the element that triggered the event.

Hover actually binds the first function to the mouseenter event, and the second one to mouseleave, so you could alternatively write this:

$('.selectorClass').mouseenter(function(){
	$(this).stop().fadeTo('slow',0.4);
}).mouseleave(function(){
	$(this).stop().fadeTo('slow',1);
});

As of version 1.4 of jQuery, it is now possible to pass a single function to hover, which will be called on both mouseenter and mouseleave. This way you can shorten your code even more by writing only one function:

$('.selectorClass').hover(function(){
	this.check = this.check || 1;
	$(this).stop().fadeTo('slow',this.check++%2==0 ? 1 : 0.4);
});

The example above increments this.check every time the function is run. Depending on whether the number is even or not, it chooses the opacity level to pass to fadeTo() (1 being completely visible).

This is also a great place to use the jQuery toggle functions like .slideToggle() and .toggleClass().

Go to Source

Konsrtr is a new discovery engine that will let anybody find upcoming gigs in his close vicinity. The way it all works is by taking your current locationas the starting point and then producing a list of gigs that are forthcoming in your close vicinity.

That is the main element which is weighed up here: proximity.

Read more

Learn more about Konsrtr.com in Dataopedia.com

Find out how much Konsrtr.com is worth with Stimator.com



Go to Source


About this blog

This blog delivers stylish and dynamic news for designers and web-developers on all subjects of design, ranging from: CSS, Ajax, Javascript, web design, graphics, typography, advertising & much more. Our goal is to help you communicate effectively on the web with an engaging website or functional interface.

Internet MegaMeeting, LLC Microsoft Store LinkShare  Referral  Program Iolo technologies, LLC Artisteer - Web Design Generator FTPress.com (Pearson Education) Mobile Security: Parental Controls and Monitoring Atom Entertainment (formerly AtomShockwave)
.
Web Analytics