/    Sign up×
Community /Pin to ProfileBookmark

up & down buttons to select instead of clicking

Hi I am desperatly trying to program up & down buttons to enable scrolling to make selections instead of clicking on the selection itself. Do you have a solution.

Here is the code I am using:

<html>

<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>

</head>
<body bgcolor=”black”>

<frame src=”cadre1.html” name=”cadre1″>
<h6>
<a href=”http://www.yahoo.com” target=”cadre1″><B style=”color: #FFFF99″>IMAGE1</B></a><BR>
<a href=”http://www.yahoo.ca” target=”cadre1″><B style=”color: #FFFF99″>IMAGE2</B></a><BR>
<a href=”http://www.yahoo.fr” target=”cadre1″><B style=”color: #FFFF99″>IMAGE3</B></a><BR>
<a href=”http://www.google.com” target=”cadre1″><B style=”color: #FFFF99″>IMAGE4</B></a><BR>
<a href=”http://www.google.ca” target=”cadre1″><B style=”color: #FFFF99″>IMAGE5</B></a><BR>
</h6>
</body>
</html>

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@Warren86Jan 02.2005 — ActiveX 'Spin Buttons':

<HTML>

<HEAD>

<Script Language=JavaScript>

var isSpin = 0;

function changeIt(direction){

if (direction == 'up' && isSpin < 100){SpinButton1.value = isSpin + 10;
isSpin = SpinButton1.value}
if (direction == 'dn' && isSpin > 0){SpinButton1.value = isSpin - 10;
isSpin = SpinButton1.value}
alert(SpinButton1.value);

}

</Script>

<Script Language=VBScript>

Sub SpinButton1_SpinUp()

changeIt("up")

end sub

Sub SpinButton1_SpinDown()

changeIt("dn")

end sub

</SCRIPT>

</HEAD>

<BODY>

<OBJECT ID="SpinButton1" WIDTH=16 HEIGHT=42

CLASSID="CLSID:79176FB0-B7F2-11CE-97EF-00AA006D2776">

<PARAM NAME="Size" VALUE="423;847">

</OBJECT>

</BODY>

</HTML>
Copy linkTweet thisAlerts:
@Warren86Jan 03.2005 — <HTML>

<HEAD>

<Script Language=JavaScript>

nLink = new Array();
nLink[0] = "http://www.yahoo.com"
nLink[1] = "http://www.yahoo.ca"
nLink[2] = "http://www.yahoo.fr"
nLink[3] = "http://www.google.com"
nLink[4] = "http://www.google.ca"

nImg = new Array();
nImg[0] = 'Image1.jpg'
nImg[1] = 'Image2.jpg'
nImg[2] = 'Image3.jpg'
nImg[3] = 'Image4.jpg'
nImg[4] = 'Image5.jpg'

var isSpin = 0;

function changeIt(direction){

if (direction == 'up')
{
if (isSpin < 4){isSpin++} else {isSpin = 0}
document.frames['cadre1'].location.replace(nLink[isSpin]);
document.getElementById('spinImg').src = nImg[isSpin];
}
if (direction == 'dn')
{
if (isSpin > 0){isSpin--} else {isSpin = 4}
document.frames['cadre1'].location.replace(nLink[isSpin]);
document.getElementById('spinImg').src = nImg[isSpin];
}
}


</Script>

<Script Language=VBScript>

Sub SpinButton1_SpinUp()

changeIt("up")

end sub

Sub SpinButton1_SpinDown()

changeIt("dn")

end sub

</Script>

</Head>

<Body>

<IFrame

Src = "http://www.yahoo.com"

Name = 'cadre1'

Width = '650'

Height = '200'>

</IFrame>

<br>

<Table align='left'>

<TR><TD><Img Src='Image1.jpg' id='spinImg'></TD>

<TD>

<OBJECT ID="SpinButton1" WIDTH=16 HEIGHT=42

CLASSID="CLSID:79176FB0-B7F2-11CE-97EF-00AA006D2776">

<PARAM NAME="Size" VALUE="423;847">

</OBJECT>

</TD>

</TR>

</Table>

</BODY>

</HTML>
×

Success!

Help @nitram spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...