Eclyps19
02-08-2006, 02:02 PM
I have this tiny bit of code...
<script language="javascript">
var level=0
var src='.jpg'
function up()
{
if(level < 10){
level = level + 1;
src = level + '.jpg'
document.images['scale'].src=src
}
}
function down()
{
if(level > 0){
level = level - 1;
src = level + '.jpg'
document.images['scale'].src=src
}
}
</script>
Here is a link to the page it's being used on.
http://still-looking.com/new_site/profile/profile03TEST.asp
is there any possible way to make it so the page doesn't scroll to the top when the arrow is pressed? If you have a really high resolution like me, you won't notice a thing but a client is using 1024x768 and it's messing up =( any help would be great. If there's not a way to do this in javascript, is there a way to do it in ASP? Thanks Guys! =D
<script language="javascript">
var level=0
var src='.jpg'
function up()
{
if(level < 10){
level = level + 1;
src = level + '.jpg'
document.images['scale'].src=src
}
}
function down()
{
if(level > 0){
level = level - 1;
src = level + '.jpg'
document.images['scale'].src=src
}
}
</script>
Here is a link to the page it's being used on.
http://still-looking.com/new_site/profile/profile03TEST.asp
is there any possible way to make it so the page doesn't scroll to the top when the arrow is pressed? If you have a really high resolution like me, you won't notice a thing but a client is using 1024x768 and it's messing up =( any help would be great. If there's not a way to do this in javascript, is there a way to do it in ASP? Thanks Guys! =D