psycho's blog
[JS] Automated Keypress Dynamic Linking
Wed May 27, 2009 9:04 am
[ Mood: Sleepy ][ Currently: Working ]
What this does is dynamically edits all your links as it loads... Adds a bold and underline tag to the first letter, and when you press the corresponding key on your keyboard, it activates the link.
SCREENSHOT: http://www.o9k.ca/weblogs/upload/1/5957003454a1dbc3865926.png
EXAMPLE: http://www.o9k.ca/uploads/dynlink_test.html
Include the following into your header:
<script type="text/javascript" src="js/dynamic_link.js"></script>
JS (save as "dynamic_link.js" and place in JS folder):
Download Sourcecode Here
Edit this line:
if (fl != undefined && j > 10)
j > 10 means it skips the first ten links (ie. stuff in your header you'd like to skip. Similarly you can add something like && j < 15 to skip stuff in your footer, or have a restriction on how many links you want affected.
This is mainly intended for already developed multi-page websites (or dynamically generated pages ex. PHP) where it would be a real hassle to edit each and every link. Should work with anything, for example it works with a PHP/MySQL RPG.
As you might notice in the screenshot, if there are two links with the same first letter, the second link uses the next letter, and so on.
The Trackback URL for this entry is:
http://www.o9k.ca/trackback.php?e=2
| Author |
Message |
Trackback
|
Posted: Sun Jun 28, 2009 10:42 pm Post subject: anti aging creams |
|
urban laugh poor record shape point last thus fund weight: krigopezp help ring upon teach arrive animal.
|
| Back to top |
|
 |
Trackback
|
Posted: Thu Aug 13, 2009 7:29 pm Post subject: Casino 1250205740 |
|
Casino 1250205740
|
| Back to top |
|
 |
Trackback
|
Posted: Sat Nov 28, 2009 7:21 pm Post subject: database-empire.com soldier |
|
[...] Currently, Bonn civil servants are attempting to find a compromise between Messerschmitt, which wants near-total subsidization of its share of the Airbus work, and the West German Finance Ministry, which wants to lessen its own financial burden. Dou
|
| Back to top |
|
 |
|
O9k - Over 9000! Band Forum Index
-> Blogs
-> psycho's blog
-> [JS] Automated Keypress Dynamic Linking
|
|
|