Help with very basic javascrip please.

Soldato
Joined
1 Sep 2005
Posts
10,001
Location
Scottish Highlands
Could someone very kindly write me some javascript (I will learn javascript eventually, but for now im sticking to stumbling around with html and css) that takes a number (dynamic number from a pixelpost tag) subtracts a predetermined numer (64) and outputs it as a lineheight in a css div (#gallerypreviousbutton).

Merci.
 
I've never heard of pixelpost, so don't know how it works or even what it is.. but this will take the number as an argument.
Code:
function resizeButton (num) {
  document.getElementById('foo').style.lineHeight = num - 64;
}
 
Back
Top Bottom