[Openupload-svn-update] SF.net SVN: openupload:[206] web
Status: Beta
Brought to you by:
tsdogs
|
From: <rl...@us...> - 2008-12-14 03:28:51
|
Revision: 206
http://openupload.svn.sourceforge.net/openupload/?rev=206&view=rev
Author: rlelek
Date: 2008-12-14 03:28:42 +0000 (Sun, 14 Dec 2008)
Log Message:
-----------
-- Now XHTML 1.0 Strict Compliant --
Also added specific directories for JavaScript and CSS
The relative file names for the home page are:
- js/main.js
- css/main.css
Added Paths:
-----------
web/js/
web/js/main.js
Added: web/js/main.js
===================================================================
--- web/js/main.js (rev 0)
+++ web/js/main.js 2008-12-14 03:28:42 UTC (rev 206)
@@ -0,0 +1,11 @@
+function externalLinks() {
+ if (!document.getElementsByTagName) return;
+ var anchors = document.getElementsByTagName("a");
+ for (var i=0; i<anchors.length; i++) {
+ var anchor = anchors[i];
+ if (anchor.getAttribute("href") &&
+ anchor.getAttribute("rel") == "external")
+ anchor.target = "_blank";
+ }
+}
+window.onload = externalLinks;
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|