| Index
» Projekty
» phpMyEdit
» Fórum
» cool Javascript |
 |
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2009-10-08 04:56
Návrat hore
Odpovedať s citátom
|
Near the the bottom of the following link are INPUT buttons 2007, 2006, etc., which swap out different tables of data.
http://www.city-data.com/zips/53511.html
There's a ton of Javascript in the above page, but it looks like the following function is the control.
| Kód: |
function Sw(c, n)
{
document.getElementById(eval(c)).style.display = 'none';
document.getElementById(n).style.display = '';
document.getElementById('n' + eval(c)).className = 'ffiec'
document.getElementById('n' + n).className = 'ffiec active'
document.getElementById('n' + n).blur();
eval(c + " = n;");
} |
If any of you are Javascript geniuses, perhaps you can devise a method to utilize this technique in phpMyEdit, somehow, as some sort of filter. And otherwise, it's just a clever idea that might be implemented in non-phpMyEdit lists.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|