Click here to Skip to main content
16,016,750 members
Home / Discussions / Web Development
   

Web Development

 
Questionproblems with getting Front Page 98’s hover buttons Pin
insyirah6-Jul-06 14:47
insyirah6-Jul-06 14:47 
QuestionPopup blocker window Pin
MalikRizwan6-Jul-06 3:43
MalikRizwan6-Jul-06 3:43 
AnswerRe: Popup blocker window Pin
theJazzyBrain7-Jul-06 1:40
theJazzyBrain7-Jul-06 1:40 
Questionreposition div [modified] Pin
pastecopy6-Jul-06 1:54
pastecopy6-Jul-06 1:54 
AnswerRe: reposition div Pin
Guffa6-Jul-06 1:55
Guffa6-Jul-06 1:55 
GeneralRe: reposition div Pin
pastecopy6-Jul-06 3:26
pastecopy6-Jul-06 3:26 
AnswerRe: reposition div Pin
Guffa6-Jul-06 6:31
Guffa6-Jul-06 6:31 
AnswerRe: reposition div Pin
Brent Lamborn7-Jul-06 12:03
Brent Lamborn7-Jul-06 12:03 
You can use javascript. Copy the following and save it to an html file and try it out:

<html>
<head>
<script>
function ShowHideDivs(){
    var cb = document.getElementById("cb")
    var divone  = document.getElementById("div1")
    var divtwo = document.getElementById("div2")
    if (cb.checked == true){
        divone.style.visibility ="visible";
        divone.style.display = "block";
        divtwo.style.visibility ="hidden";
        divtwo.style.display = "none";
    }
    else{
        divtwo.style.visibility ="visible";
        divtwo.style.display = "block";
        divone.style.visibility ="hidden";
        divone.style.display = "none";
    }
}
</script>
</head>
<body>
<input id="cb" type="checkbox" onclick="ShowHideDivs();" />
<div id="div1">
Here is text inside div1.
</div>
<div id="div2">
Here is text inside div2.
</div>
</body>


The key is to what you are looking for is this part .style.display="none" / "block"

NOTE: The div tags won't show here since I used the code tag. Make sure you wrap div tags around the two sentences with ID=1 and ID=2 respectively.

"Half this game is ninety percent mental." - Yogi Berra

If you can read thank a teacher, if you can read in English, thank a Marine.

M y and h don't work so well due to m addiction to caffeine and m in abilit to to set a cup down uprigt.


QuestionPass attributes using jsp? [modified] Pin
theprinc6-Jul-06 1:40
theprinc6-Jul-06 1:40 
GeneralRe: Pass attributes using jsp? Pin
Guffa6-Jul-06 2:03
Guffa6-Jul-06 2:03 
GeneralRe: Pass attributes using jsp? Pin
theprinc6-Jul-06 2:12
theprinc6-Jul-06 2:12 
GeneralRe: Pass attributes using jsp? Pin
Guffa6-Jul-06 6:33
Guffa6-Jul-06 6:33 
QuestionTreeview + javascript Pin
ritu43216-Jul-06 0:37
ritu43216-Jul-06 0:37 
AnswerRe: Treeview + javascript [modified] Pin
Mark F.11-Jul-06 4:40
Mark F.11-Jul-06 4:40 
QuestionDisable Right Click In A Web Page Pin
Vipin Venugopal6-Jul-06 0:28
Vipin Venugopal6-Jul-06 0:28 
AnswerRe: Disable Right Click In A Web Page Pin
Guffa6-Jul-06 6:37
Guffa6-Jul-06 6:37 
AnswerRe: Disable Right Click In A Web Page Pin
Sushant_Mathur6-Jul-06 11:31
Sushant_Mathur6-Jul-06 11:31 
AnswerRe: Disable Right Click In A Web Page Pin
Brent Lamborn10-Jul-06 8:29
Brent Lamborn10-Jul-06 8:29 
Questionmove row up and down through javascript pop-up menu Pin
pastecopy6-Jul-06 0:00
pastecopy6-Jul-06 0:00 
QuestionJavascript back Pin
Megan Forbes5-Jul-06 23:58
Megan Forbes5-Jul-06 23:58 
AnswerRe: Javascript back Pin
Paddy Boyd6-Jul-06 0:24
Paddy Boyd6-Jul-06 0:24 
AnswerRe: Javascript back Pin
RichardGrimmer6-Jul-06 1:35
RichardGrimmer6-Jul-06 1:35 
AnswerRe: Javascript back Pin
CoolASL6-Jul-06 6:17
CoolASL6-Jul-06 6:17 
Questioncall javascript function on pop-up menu item or link Pin
pastecopy5-Jul-06 23:57
pastecopy5-Jul-06 23:57 
QuestionRTF Applet Pin
Maher Abu Zer5-Jul-06 22:06
professionalMaher Abu Zer5-Jul-06 22:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.