Click here to Skip to main content
15,914,905 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: Javascript Passing a variable Pin
Hawkeye10115-Aug-13 2:29
Hawkeye10115-Aug-13 2:29 
AnswerRe: Javascript Passing a variable Pin
jkirkerx21-Aug-13 11:06
professionaljkirkerx21-Aug-13 11:06 
Questionkill the process using javasscript Pin
vasu_sri14-Aug-13 3:38
vasu_sri14-Aug-13 3:38 
AnswerRe: kill the process using javasscript PinPopular
Richard Deeming14-Aug-13 3:50
mveRichard Deeming14-Aug-13 3:50 
AnswerRe: kill the process using javasscript Pin
twseitex17-Aug-13 7:33
twseitex17-Aug-13 7:33 
AnswerRe: kill the process using javasscript Pin
SaqibRasheed23-Aug-13 3:07
SaqibRasheed23-Aug-13 3:07 
QuestionDropDown onchange event is not working in IE Pin
Nandan Basak12-Aug-13 23:55
Nandan Basak12-Aug-13 23:55 
AnswerRe: DropDown onchange event is not working in IE Pin
twseitex17-Aug-13 7:45
twseitex17-Aug-13 7:45 
styles of object table only IE

are e.g.


style.display display Sets or retrieves whether the object is rendered.
style.visibility visibility Sets or retrieves whether the content of the object is displayed.

visibility only IE

visibility Attribute | visibility


Syntax
HTML { visibility : sVisibility }
Scripting object.style.visibility [ = sVisibility ]

sVisibility String "inherit" Default
"visible"
"hidden"

Example 1

<STYLE>
.vis1 { visibility:visible }
.vis2 { visibility:hidden }
</STYLE>
</HEAD>
<BODY>
<IMG ID="oSphere" SRC="sphere.jpg">
<P onmouseover="oSphere.className='vis2'"
onmouseout="oSphere.className='vis1'">
Move the mouse over this text to make the sphere
disappear.</P>

Example 2

<SCRIPT>
function disappear()
{
oSphere.style.visibility="hidden";
}
function reappear()
{
oSphere.style.visibility="visible";
}
</SCRIPT>
</HEAD>
<BODY>
<IMG SRC="sphere.jpeg" ID="oSphere">
Move the mouse over <SPAN ID="oTxt" onmouseover="disappear()"
onmouseout="reappear()"> this text</SPAN>
to see the sphere disappear.


display only IE

display Attribute | display


Syntax
HTML { display : sDisplay }
Scripting object.style.display [ = sDisplay ]

sDisplay String "block" IE 5.x and above
"none"
"inline"
"inline-block"
"list-item"
"table-header-group"
"table-footer-group"

default is "inline"
but default is block for
ADDRESS
BLOCKQUOTE
BODY
CENTER
COL
COLGROUP
DD
DIR
DIV
DL
DT
FIELDSET
FORM
Hn
HR
IFRAME
LEGEND
LI unter IE 6.x
LISTING
MARQUEE
MENU
OL
P
PLAINTEXT
PRE
TABLE
TD
TH
TR
UL
XMP
but default is "none" for
BR
FRAME
nextID
TBODY
TFOOT
THEAD
but default is "list-item" for
LI IE 6.x and above

Example 1


<SPAN ID=oSpan>
This is a SPAN
</SPAN>
in a sentence.
<P>
<INPUT TYPE=button VALUE="Block"
onclick="oSpan.style.display='block'">
:

Example 2

<SCRIPT>
function getPets()
{
oRow1Cell2.style.display="none";
oRow2Cell2.style.display="block";
oRow3Cell2.style.display="none";
}
</SCRIPT>
:
<TABLE>
<TR ID="oRow1"><TD>Horses</TD>
<TD ID="oRow1Cell2">Thoroughbreds</TD>
<TD>Fast</TD></TR>
<TR ID="oRow2"><TD>Dogs</TD>
<TD ID="oRow2Cell2">Greyhounds</TD>
<TD>Fast</TD></TR>
<TR ID="oRow3"><TD>Marsupials</TD>
<TD ID="oRow3Cell2">Opossums</TD>
<TD>Slow</TD></TR>
</TABLE>
:
<INPUT TYPE=button onclick="getPets()"
VALUE="Show household pets">
GeneralRe: DropDown onchange event is not working in IE Pin
Sunasara Imdadhusen22-May-14 0:24
professionalSunasara Imdadhusen22-May-14 0:24 
AnswerRe: DropDown onchange event is not working in IE Pin
Dholakiya Ankit10-Sep-13 19:23
Dholakiya Ankit10-Sep-13 19:23 
GeneralRe: DropDown onchange event is not working in IE Pin
Nandan Basak29-Dec-13 17:35
Nandan Basak29-Dec-13 17:35 
QuestionWindow.close overriding in java script Pin
Tahir Tamboli12-Aug-13 23:19
Tahir Tamboli12-Aug-13 23:19 
AnswerRe: Window.close overriding in java script Pin
Joezer BH12-Aug-13 23:41
professionalJoezer BH12-Aug-13 23:41 
GeneralRe: Window.close overriding in java script Pin
Tahir Tamboli13-Aug-13 0:18
Tahir Tamboli13-Aug-13 0:18 
GeneralRe: Window.close overriding in java script Pin
Joezer BH13-Aug-13 0:49
professionalJoezer BH13-Aug-13 0:49 
GeneralRe: Window.close overriding in java script Pin
Tahir Tamboli13-Aug-13 19:20
Tahir Tamboli13-Aug-13 19:20 
GeneralRe: Window.close overriding in java script Pin
twseitex18-Aug-13 3:22
twseitex18-Aug-13 3:22 
GeneralRe: Window.close overriding in java script Pin
Tahir Tamboli20-Aug-13 3:37
Tahir Tamboli20-Aug-13 3:37 
GeneralRe: Window.close overriding in java script Pin
Tahir Tamboli20-Aug-13 3:46
Tahir Tamboli20-Aug-13 3:46 
Questionlazy load not working Pin
*Najla* 20108-Aug-13 8:57
*Najla* 20108-Aug-13 8:57 
AnswerRe: lazy load not working Pin
sjyanxin12-Aug-13 23:20
sjyanxin12-Aug-13 23:20 
GeneralRe: lazy load not working Pin
*Najla* 201013-Aug-13 0:38
*Najla* 201013-Aug-13 0:38 
GeneralRe: lazy load not working Pin
Dholakiya Ankit18-Sep-13 2:11
Dholakiya Ankit18-Sep-13 2:11 
Questionviop in java Pin
Member 98777295-Aug-13 9:03
Member 98777295-Aug-13 9:03 
AnswerRe: viop in java Pin
Richard MacCutchan5-Aug-13 20:54
mveRichard MacCutchan5-Aug-13 20:54 

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.