Created
November 20, 2012 18:12
-
-
Save dash17291/4119753 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="hu"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>published photos</title> | |
<style type="text/css"> | |
html, body { background-color: #222; color: #eee } | |
a:hover { color: #92ca30 } | |
a { color: #3092ca } | |
span { color: #777; display: block; width: 140px; float: left; } | |
</style> | |
</head> | |
<body> | |
<ul id="list"> | |
</ul> | |
<script language="javascript"> | |
var links=[]; | |
</script> | |
<script type="text/javascript" src="links.js"></script> | |
<script language="javascript"> | |
var list=document.getElementById("list"); | |
for (var i=links.length; i-- >0; ) { | |
var li=document.createElement("li"); | |
var a=document.createElement("a"); | |
var item=links[i]; | |
var desc=document.createElement("span"); | |
desc.innerHTML=item.desc; | |
a.innerHTML=item.src; | |
a.href=item.src; | |
li.appendChild(desc); | |
li.appendChild(a); | |
list.appendChild(li); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment