Page 2 of 2

Posted: Mon Jul 05, 2004 1:21 pm
by m3rajk

Code: Select all

function getElem(id) {  // fix for internet error
  switch(id){
  case 'verify': base=document.verify; return base; break;
  default: return (document.getElementById ? document.getElementById(id) : document.allїid]); break;
  }
}
doesnt work either.
i figured hardwiring the one that needs it... but that's not working

Posted: Mon Jul 05, 2004 1:25 pm
by m3rajk
feyd wrote:getting rollovers to work with the image is fairly simple

Code: Select all

<input type="image" src="whatever.png" onmouseover="roll(this)" onmouseout="out(this)" />
i thought you meant button.. my bad.

Posted: Mon Jul 05, 2004 1:30 pm
by feyd

Code: Select all

function getElem(id) &#123;  // fix for internet error 
  switch(id)&#123; 
  case 'verify': base=eval('document.'+verify); return base; break; 
  default: return (document.getElementById ? document.getElementById(id) : document.all&#1111;id]); break; 
  &#125; 
&#125;

Posted: Mon Jul 05, 2004 5:48 pm
by m3rajk
ok. images and buttons becme submits... but here i make use oc cancel.....

http://www.findyourdesire.com/adddesire ... ho&fuid=48


how would you do that?

(it might say you need to login. let me know if it does. i'll copy the page code)

Posted: Mon Jul 05, 2004 5:57 pm
by m3rajk
feyd wrote:

Code: Select all

function getElem(id) &#123;  // fix for internet error 
  switch(id)&#123; 
  case 'verify': base=eval('document.'+verify); return base; break; 
  default: return (document.getElementById ? document.getElementById(id) : document.all&#1111;id]); break; 
  &#125; 
&#125;
even that addidtion didnt work. figured it'd use that for the ones i haven't converted to make sure they work, but it's not working, so....

Posted: Mon Jul 05, 2004 6:51 pm
by feyd
you can process an onclick for it.. that's what I've done in the past. Although I still make it work, if the page get's submitted, since javascript may be off in the browser... Just make sure it has the correct name, and the script should handle it right.