Closed Thread Icon

Preserved Topic: deactivation of buttons Pages that link to <a href="https://ozoneasylum.com/backlink?for=18050" title="Pages that link to Preserved Topic: deactivation of buttons" rel="nofollow" >Preserved Topic: deactivation of buttons\

 
Author Thread
Ensabanur
Bipolar (III) Inmate

From: KY
Insane since: Nov 2001

posted posted 11-29-2001 22:48

Is it possible to deactivate buttons trough javascript. I have a button with a mouseover function and a two buttons below it that load text in a window in the middle when I drag the mouse up to the window , if the mouse hits the mouseover button it resets the window.

Hello! My name is Indigo Montoya... You kill my father... Prepare to DIE!!

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 11-30-2001 01:09

It is probably possible but it is very difficult to say without seeing the page you're talking about. Could you post a link?

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 11-30-2001 02:57

onClick="return false";


or you can call a function that returns false
function myfunction() {
if (this = true) {
return true;
} else {
return false
}
}

onClick="return myfunction();"


Make sense?



:[ Computers let you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila. ]:

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 11-30-2001 04:12

you can also add an if statement in your onmouseover to deactivate it when you are doing the drag thing



:[ Computers let you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila. ]:

Ensabanur
Bipolar (III) Inmate

From: KY
Insane since: Nov 2001

posted posted 11-30-2001 05:48

Hey guys, thanks for responding. I can't really show you what I"m trying to do but I can do my best. if you go here you can see my basic page. It's been updated a lot but the server is really messed up and I haven't been able to upload anything to get my finished page up. ANyway at the bottom where it says about sek-l-wof there are now two links below that between green <hr> tags. As I was saying before when you click either of the links (one says mission statement, the other says Employment) stuff pops into the window in the middle. The probelm is if you move the mouse up to the window and go over the about sek-l-wof text the text is replaced with the onmouseover stuff that is associated with the about sek-l-wof text. Can you get an idea of what I'm talking about?



Hello! My name is Indigo Montoya... You kill my father... Prepare to DIE!!

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 11-30-2001 07:28

Okay here's what I'd do (I think I understand). When you mouseover the bottom links it is probably calling some function.

What I would do is at the end of that function add a line like this.

overOk = false
setTImeout('overOk = true', 5000);

Then wrap the stuff in the About area, the line that looks like this

onMouseOver="document.getElementById('floatContent').innerHTML='Sek-L-woF was started in 2001 by Jeremy Weintraub and Jeremiah Ware, two graduates of Hanover College. <p> The purpose of Sek-L-woF was and is to provide quality services to both residential and commercial clients with the purpose of improving the overall experience the Internet provides.'" href ="javascript:void(0)"

With an if statement
onMouseOver="if (overOk) {document.getElementById('floatContent').innerHTML='Sek-L-woF was started in 2001 by Jeremy Weintraub and Jeremiah Ware, two graduates of Hanover College. <p> The purpose of Sek-L-woF was and is to provide quality services to both residential and commercial clients with the purpose of improving the overall experience the Internet provides.'};" href ="javascript:void(0)"

That should give someone 5 seconds before the about link works again


Otherwise (this may be better) have the links work onClick.



:[ Computers let you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila. ]:

Ensabanur
Bipolar (III) Inmate

From: KY
Insane since: Nov 2001

posted posted 12-01-2001 05:18

it didn't quite work. I'm guessign I hvae to change something somewhere. Should it be setTImeout or setTimeout?

Hello! My name is Indigo Montoya... You kill my father... Prepare to DIE!!

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 12-01-2001 05:33

Hmm.

I have to go but I'll take a closer look at your code and give you a more specific answer later





:[ Computers let you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila. ]:

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 12-01-2001 09:02

(should be setTimeout)

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 12-01-2001 09:26

Hokay, this page doesn't have the links that changes the content. So I can't give you an exact answer.

Here's the deal, I could probably fix the DHTML so that the way you have it here it would work. However if I did that I don't think I would be helping that much. The method you are using to replace the center text is really chunky. It needs to be cleaned up to make things easier.

You don't want to have long lines like this:

code:
document.getElementById('floatContent').innerHTML='Sek-L-woF was started in 2001 by Jeremy Weintraub and Jeremiah Ware, two graduates of Hanover College. <p> The purpose of Sek-L-woF was and is to provide quality services to both residential and commercial clients with the purpose of improving the overall experience the Internet provides.'



In your a href tags.
There's a much more elegant solution.

Email me and we can work it out and hopefully I can show you a few things in the process.



:[ Computers let you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila. ]:

« BackwardsOnwards »

Show Forum Drop Down Menu