[ Index ] |
|
Code source de CMS made simple 1.0.5 |
1 Scriptaculous = { 2 Version: '1.5_pre1', 3 require: function(libraryName) { 4 // inserting via DOM fails in Safari 2.0, so brute force approach 5 document.write('<script type="text/javascript" src="'+libraryName+'"></script>'); 6 }, 7 load: function() { 8 // fixme: check for prototype version number 9 if(typeof Prototype=='undefined') 10 throw("script.aculo.us requires the Prototype JavaScript framework >= 1.4.0"); 11 var scriptTags = document.getElementsByTagName("script"); 12 for(var i=0;i<scriptTags.length;i++) { 13 if(scriptTags[i].src && scriptTags[i].src.match(/scriptaculous\.js$/)) { 14 var path = scriptTags[i].src.replace(/scriptaculous\.js$/,''); 15 this.require(path + 'util.js'); 16 this.require(path + 'effects.js'); 17 this.require(path + 'dragdrop.js'); 18 this.require(path + 'controls.js'); 19 } 20 } 21 } 22 } 23 24 Scriptaculous.load();
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Tue Apr 3 18:50:37 2007 | par Balluche grâce à PHPXref 0.7 |