| Index
» Projects
» phpMyEdit
» Forum
» cool Javascript |
 |
doug
Joined: 10 Feb 2003
Posts: 1013
Location: Denver, Colorado (USA)
Posted: 2009-10-08 04:56
Back to top
Reply with quote
|
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.
| Code: |
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.
|
|
Post new topic
Reply to topic
|
|
|
|