View Single Post
Old 12-24-2011, 01:50 AM   PM User | #6
Charlie8776
New Coder

 
Join Date: Dec 2011
Posts: 13
Thanks: 4
Thanked 0 Times in 0 Posts
Charlie8776 is an unknown quantity at this point
Wow, this is getting rather complicated. Thank you for your help. I'd like to keep things simple, where possible. I'm trying to get around the ElementByID restrictions with the code below, but it doesn't work:

Code:
function plus() {
	document.getElementsByTagName('img').width += 200;
}

function minus() {
	document.getElementsByTagName('img').width -= 200;
}
Code:
<a href="javascript:plus();">+</a>
<a href="javascript:minus();">-</a>

<img src="index/img/1.png" class="testclass">
Code:
.testclass {
	border-bottom: 1px solid #BCBCBC;
	border-right: 1px solid #BCBCBC;
	border-left: 1px solid #EAEAEA;
	border-top: 1px solid #EAEAEA;
	margin-bottom: 25px;
	width: 60%;
}

Last edited by Charlie8776; 12-24-2011 at 02:12 AM..
Charlie8776 is offline   Reply With Quote