index.php
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Social 1</title>
<script src="http://code.jquery.com/jquery-1.5.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('a[lang="twitter"]').click(function() {
var href = $(this).attr('href');
var name = href.replace("twitter:", "");
location.href = "http://twitter.com/#!/" + name;
return false;
});
$('a[lang="hyves"]').click(function() {
var href = $(this).attr('href');
var name = href.replace("hyves:", "");
location.href = "http://" + name + ".hyves.nl/";
return false;
});
});
</script>
</head>
<body>
<a href="twitter:maartenbuis" lang="twitter">Twitter</a>
<a href="hyves:maartennee" lang="hyves">Hyves</a>
</body>
</html>
<html>
<head>
<title>Social 1</title>
<script src="http://code.jquery.com/jquery-1.5.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('a[lang="twitter"]').click(function() {
var href = $(this).attr('href');
var name = href.replace("twitter:", "");
location.href = "http://twitter.com/#!/" + name;
return false;
});
$('a[lang="hyves"]').click(function() {
var href = $(this).attr('href');
var name = href.replace("hyves:", "");
location.href = "http://" + name + ".hyves.nl/";
return false;
});
});
</script>
</head>
<body>
<a href="twitter:maartenbuis" lang="twitter">Twitter</a>
<a href="hyves:maartennee" lang="hyves">Hyves</a>
</body>
</html>