All topics
 
member picmember pic
 
Snippets by author: A
 
Overall visits to all the topics: 4,981,959
Daily average (Calculated from the website subscription day): 2,065.489
Optional sorting commands:
Order by amount of visits: click here
Order by vote (attention: this may exclude from the returned results all the entries that have no votes): click here
Normal order: click here
Current order: by category: Programming Javascript
Other categories available for this author (Limited data report: 100):
Advice: Martial Arts and Self Defense(4), Books(236), Critical Reviews and Essays(4), Dictionaries(1), Emergency Care(4), Epistles Letters and Advice(5), Fantasy Epics and Fables(1), History and Documents(5), Humor and Jokes(2), Methematics(2), Music and Lyrics(6), News Digests and Press Reviews(1), Novels Poetry and Stories(3), Philosophy Reviews(7), Poetry(1), Programming(4), Programming Ajax(2), Programming Javascript(82), Programming Php(52), Psychology(1), Quotes(1), Religion Esoterica and Spirituality(12), Scientifical Reviews(4), Self Improvement(1), Sport Activities and Apparels(2), Tarots(1)
Showing topics: 1, 10
Available total: 448
This subscriber has a blog too: Read the blog. Shoutbox: 103 reviews: 153
 
Part 3: Javascript Dhtml: 36 Clip And/Or Slide Layer Animations Identification Number: 444 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: function sliceRL(id, speed, amount, size, onExitOptionalFunction, stop1, stop1)   if(id)   id=(typeof(id)=="object")? id.id: id;   var variableName=id+"_clipper";   if(window variableName && window variableName .isRunning)return; ;   if(!id !document.getElementById(id)) return; ;   var object=window variableName =new Object();   object 'layer' =document.getElementById(id);   object "id" =id;   var name="sliceRL";//   object name =window name ;   object "last" =name;   object.isRunning=1;   object 'speed' =parseFloat(speed) 100;   object 'amount' =parseFloat(amount) 1;   object 'half' =object 'amount' ;///2;   object 'size' =Math.abs( parseFloat(size) ) object 'layer' .offsetWidth/2;   onExitOptionalFunction=(typeof(onExitOptionalFunction)=="string")?   window onExitOptionalFunction :onExitOptionalFunction;   object 'onExitOptionalFunction' =(typeof(onExitOptionalFunction)=="function")?   onExitOptionalFunction:(onExitOptionalFunction/*==1*/)?   function(object)   document.getE... read more: click here Visitors: 4,289 Tagged by its author as: Programming Javascript This author also has a Blog Part 2: Javascript Dhtml: 36 Clip And/Or Slide Layer Animations Identification Number: 443 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: function onBT(id, speed, amount, size, onExitOptionalFunction, stop1, stop2)   if(id)   id=(typeof(id)=="object")? id.id: id;   var variableName=id+"_clipper";   if(window variableName && window variableName .isRunning)return; ;   if(!id !document.getElementById(id)) return; ;   var object=window variableName =new Object();   object 'layer' =document.getElementById(id);   object "id" =id;   var name="onBT";//   object name =window name ;   object "last" =name;   object.isRunning=1;   object 'speed' =parseFloat(speed) 100;   object 'amount' =parseFloat(amount) 1;   object 'size' =parseFloat(size) object 'layer' .offsetHeight/2;   onExitOptionalFunction=(typeof(onExitOptionalFunction)=="string")?   window onExitOptionalFunction :onExitOptionalFunction;   object 'onExitOptionalFunction' =(typeof(onExitOptionalFunction)=="function")?   onExitOptionalFunction:(onExitOptionalFunction/*==1*/)?   function(object)   document.getElementById( object.id ).style.visibility="hidden";   obj... read more: click here Visitors: 3,558 Tagged by its author as: Programming Javascript This author also has a Blog Part 1: Javascript Dhtml: 36 Clip And/Or Slide Layer Animations Identification Number: 442 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: function offRL(id, speed, amount, size, onExitOptionalFunction, stop1, stop2)   if(id)   id=(typeof(id)=="object")? id.id: id;   var variableName=id+"_clipper";   if(window variableName && window variableName .isRunning)return; ;   if(!id !document.getElementById(id)) return; ;   var object=window variableName =new Object();   object 'layer' =document.getElementById(id);   object "id" =id;   var name="offRL";   object name =window name ;   object "last" =name;   object.isRunning=1;   object 'speed' =parseFloat(speed) 100;   object 'amount' =parseFloat(amount) 1;   object 'size' =parseFloat(size) object 'layer' .offsetWidth/2;   onExitOptionalFunction=(typeof(onExitOptionalFunction)=="string")?   window onExitOptionalFunction :onExitOptionalFunction;   object 'onExitOptionalFunction' =(typeof(onExitOptionalFunction)=="function")?   onExitOptionalFunction:(onExitOptionalFunction/*==1*/)?   function(object)   document.getElementById( object.id ).style.visibility="hidden";   obje... read more: click here Visitors: 3,525 Tagged by its author as: Programming Javascript This author also has a Blog Javascript Compare Arrays Find Difference Or Shared Items Identification Number: 440 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: OBJECTIVE : given two arrays, determine whether there are identical entries (that is, shared by both) or different entries (that is, unshared by both) and report such instances.   function compareArrays(array1, array2, mode)   if(typeof array1!='object' typeof array2!='object' typeof array1 'length' =='undefined' typeof array2 'length' =='undefined')/*bad input*/return false; ;   return (!mode)?   array1.filter( function(i, arr) return array2.indexOf(i)>-1; ).filter( function(i) return array2.filter( function(i)return array1.indexOf(i)>-1; ).indexOf(i)>-1; ): array1.filter( function(i, arr) return array2.indexOf(i)==-1; ), array2.filter( function(i) return array1.indexOf(i)==-1; ) ;   /*keep this comment to reuse freely   http://www.fullposter.com/?1*/   INPUTS : first two inputs must be two numerically indexed arrays.   Last argument a number: if none or zero, the function returns the shared entries. If passed as number 1, the function return... read more: click here Visitors: 8,675 Tagged by its author as: Programming Javascript This author also has a Blog Javascript Format Currency Number By Thousands Identification Number: 428 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: Instance 1 OBJECTIVE : given a string meant to be a sequence of numbers, place a joiner such as a dot or a comma after every 3 numbers (thousands).function numberBy1000(val, joiner)   if(typeof val !='string')return false; ; val=val.replace(/ ^0-9 /g, ''); var output= ;   for(var i=val.length; i>=1; i-=(i>3)?3:i) output.unshift(val.substring(i, i-3));   return output.join(joiner '.');     INPUTS : first input a string representing the number, second input a string representing the thousands separator (if none passed it defaults to a dot).   RETURNS : boolean false if the input value is not a string, or the formatted number as a string.   CAVEATS : the function removes any non numerical element from the input value.   Example of use:   //Remember to include your function, then:     Insert number: Instance 2 Alternatively, I can supply ... read more: click here Visitors: 11,023 Tagged by its author as: Programming Javascript This author also has a Blog Javascript Map Html Table Highlight Cells By Column Respect Rowspans And Colspan Identification Number: 426 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: OBJECTIVE : given an html table, upon selection of any cell return all the cells that belong to its column, accounting correctly for rowspans and colspans.     Related topic: Javascript Tablesort: Sort Table Cells Order By Cell Row Or Column.   Note - an Internet Explorer conflict with a possibly future reserved keyword (enum) solved.     Currently there aren't many online scripts for this purpose. It may be a daunting task.   In fact whereas tables in javascript can easily be accessed by rows, no similar built-in method is provided to access tables by columns.   Arguably this may depend on the somewhat ambiguous consensus about what may belong to a column and what may ... read more: click here Visitors: 10,681 Tagged by its author as: Programming Javascript This author also has a Blog Javascript Tablesort: Sort Table Cells Order By Cell Row Or Column Identification Number: 425 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: OBJECTIVE : given an html table once picked one of its cells rearrange either its row or its column in ascending or descending order accordingly to the involved cells contents, by cell contents being meant the cells plain text irrespective of any mark-up. Order by row:function cellOrderByRow(cellObject, reverseOrder) /*in place ordering*/   var row=/*this ought to be derived out of runtime recursion*/cellObject.parentNode, length=row.cells.length, sortedValuesOffset=0, indexOfMaximum=0;   /*runtime:*/while(indexOfMaximum row.cells indexOfMaximum .innerHTML.replace(/+>/, '')) indexOfMaximum=i;   else if(reverseOrder && row.cells i .innerHTML.replace(/+>/, '') < row.cells indexOfMaximum .innerHTML.replace(/+>/, '')) index... read more: click here Visitors: 10,762 Tagged by its author as: Programming Javascript This author also has a Blog Javascript Date Verify Whether A Date Falls Within Any Given Time Range Identification Number: 424 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: OBJECTIVE : given a javascript date object verify whether such date falls within a specific time range in the past and future both; the point of reference from which this range is assumed must be another date object.   Similar topic: Javascript Sum Dates: Add Or Subtract Any Amount Of Time From Any Given Datefunction setDateRange(dateObjectToTest, referencedateObject, rangePlus, rangeMinus/*pass no less sign*/, time)   if(typeof dateObjectToTest!='object')dateObjectToTest=new Date(); ;   if(typeof referencedateObject!='object') referencedateObject=new Date(); ;   rangePlus=parseFloat(rangePlus) 0;   rangeMinus=parseFloat(rangeMinus) 0;   var sP=0, mP=0, hP=0, dP=0, MP=0, yP=0;   var sL=0, mL=0, hL=0, dL=0, ML=0, yL=0;   switch(time)   case 0: dP=rangePlus; dL=rangeMinus; break;   case 1: MP=rangePlus; ML=rangeMinus; break;   case 2: yP=rangePlus; ... read more: click here Visitors: 10,648 Tagged by its author as: Programming Javascript This author also has a Blog Javascript From Php Unix Timestamp To Javascript Date Identification Number: 423 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: OBJECTIVE : given a time supplied in the unix timestamp format, pass such number to javascript and get a human readable date.function unixTimestampToJs(unix, joiner)   unix=parseInt(unix);   if(unix)   joiner=joiner '/';   var foo=new Date(), mfoo, dfoo, hfoo, mmfoo, sfoo;   foo.setTime(unix * 1000);   return ( ((dfoo=foo.getUTCDate())... read more: click here Visitors: 12,156 Tagged by its author as: Programming Javascript This author also has a Blog Javascript Layers Positioning Detect Page Scroll, Box Border Scrollbars Overflow Identification Number: 422 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: OBJECTIVE : position any html object on a page accordingly to mouse coordinates as returned by any event of your choice: place correctly taking into account possible document scroll offsets too, and clicks within layers that have scrollable overflow too.   Do the above detecting also whether the edges of the layer to be positioned overflow the boundaries of a layer within which you have clicked (called the host layer), and automatically reposition the client layer so that its edges do not trespass those of the host: in this regard, allow a stricter implementation namely that not only the host boundaries should not be trespassed, but that, if the host layer has scrollbars and borders, also these latter features should not be trespassed by the edges of the client layer.function detectOverflow(e/* null*/, hostObj, clientObj, clientOriginalY/* 0*/, clientOriginalX/* 0*/, strictBoundaries, andReposition)//2.0.0.0   if(e)clientOriginalY=e.pageY; c... read more: click here Visitors: 9,815 Tagged by its author as: Programming Javascript This author also has a Blog