-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample42.htm
More file actions
executable file
·36 lines (28 loc) · 1.03 KB
/
example42.htm
File metadata and controls
executable file
·36 lines (28 loc) · 1.03 KB
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
30
31
32
33
34
35
36
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><head><title>Plug-in JavaScript: Example 42</title>
<script src="PJ.js"></script>
<script>Initialize()</script>
</head><body>
<div id='democrat'><h2>Democrat Info</h2>
The Democratic Party is one of the world's oldest parties, and<br />
has the most registered voters of any party in the world as of<br />
2004. It is considered to be left of center.<p>
<a id='democrat' href='#'>Click to see Republican info</a></div>
<div id='republican'><h2>Republican Info</h2>
The Republican Party is often called the Grand Old Party or the<br />
GOP, despite being the younger of the two major parties. It is<br />
considered to be right of center.<p>
<a id='republican' href='#'>Click to see Democrat info</a></div>
<script>
window.onload = function()
{
Hide('republican')
O('democrat').onclick = toggle
O('republican').onclick = toggle
function toggle()
{
HideToggle(Array('democrat', 'republican'))
}
}
</script>