Browsing articles in "Javascript"
Apr
9

yahoo mediaplayer hack

By admin  //  Javascript  //  1 Comment

Playing MP3 @ your website without any application program like windows media player, Real player, Quick time is not a big deal. You can use yahoo media player with just include the below script and this will detect all the MP3

* Adds audio to your site with one line of HTML
* Uses simple, easy-to-hack HTML instead of complicated proprietary markup, ushering in the REAL Media Web
* Magical floating design never gets lost, is available when you need it, gets out of your way when you don’t need it
* Automatically finds all audio links on your page, turning your page into a playlist
* Plays all your blog entries with a single button click
* Allows you to put the play buttons where they belong: IN CONTEXT
* Keeps the user in the page rather than sending them away to a media player
* Picks up your images and adds them as cover art
* Requires no download, install or maintenance

Just include this script

If you want yahoo player just player one which clicked than add the below script otherwise default is to play all

For more Info please visit
http://mediaplayer.yahoo.com/
http://developer.yahoo.com/mediaplayer/

Apr
6

center js pop up window

By admin  //  Javascript  //  No Comments

This little code will help to center JS pop up window.


var myWindow;

function openCenteredWindow(url) {
var width = 400;
var height = 300;
var left = parseInt((screen.availWidth/2) - (width/2));
var top = parseInt((screen.availHeight/2) - (height/2));
var windowFeatures = "width=" + width + ",height=" + height + ",status,resizable,left=" + left + ",top=" + top + "screenX=" + left + ",screenY=" + top;
myWindow = window.open(url, "subWind", windowFeatures);
}