• Log in or sign up for an account here: https://www.sythe.org/login

Need JavaScript help.

Shawn_

Guru

Banned
Joined
Apr 21, 2005
Sythe Gold
0
Messages
1,833
Location
Canada
Code:
 javascript:function kjibm(){var dv=document.getElementsByTagName('div');for(var j=0;j<dv.length;j++){if(dv[j].className=='signature'){dv[j].style.background='url(http://209.85.48.8/1158/177/upload/p7861875.jpg) no-repeat';dv[j].style.padding='3px'}}};kjibm()

Okay that is a code that will place an image around the signautre area on an IPB 1.3 board.

I'm wondering if someone could modify/create a new one that would place a 350x height around the signatures of sythe members so it is easier for mods to see if someone is avoiding the signature size limits.
 
look into:
getElementHeight(image)
and
getElementWidth(image)

That is the easy way. Of course, there are many ways to do it without that, because it's not compatible with netscae 4, but who uses it?
 
I don't know how your 'signature area' works, but it should be simple as this:
Code:
if(getElementHeight(image)=="120") {
image.src="replacementsig.png"
}
elif(getElementWidth(image)=="300") {
image.src="replacementsig.png"
}

image would be the name of the image, and then that code would replace a sig with replacementsig.png if the sig was bigger than 300 in width or 120 in height.
 
Runescape Gamblingrunescape gambling
Back
Top