|
| ||||||||||
| Tags: css display, display block, javascript, windows application |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| How to write javascript to Display Block
|
|
#2
| |||
| |||
| Re: How to write javascript to Display Block
In each of your "onclick" events that call that function, all you need to do is include the id of the div you want to show when you call the function. 'display' property of CSS decides how an element would be displayed. Since you already have a table, it doesn't make sense to set the display property to table. IE doesn't use or respect the proper CSS display values for tables, rows etc. You simply use "block". Very convenient, but it doesn't work well in well-behaved browsers. |
|
#3
| |||
| |||
| Re: How to write javascript to Display Block
The javascript dom model for setting css properties is quite outdated (just like functions Dreamweaver injects in your code for swapping images). I have tried out the setting of display property but it has blocked me. Mysteriously enough, it didn't work neither in IE nor in any other browser! therefor i use the visibility property. There are three selections: visible, hidden, and collapse. Visibility is also a recognized style method. You may try this for your problem. |
|
#4
| |||
| |||
| Re: How to write javascript to Display Block
When the script replaces the IMG with the SPAN it transfers the width and height properties of the IMG to the CSS width and height properties of the SPAN's style attribute. You need to take the block out of #logo the image image blg_title_images shows up but blg_logo has a 3px space under it. If I leave block in the space goes away and so does blg_title_images. Try out the following display block in your program. Code: p.inline
{
display:inline;
} |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "How to write javascript to Display Block" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to stop insecure JavaScript block in chrome | hanni ball | Technology & Internet | 3 | 25-02-2012 11:01 AM |
| Javascript write to file | Din_the1 | Software Development | 4 | 29-05-2010 12:38 PM |
| How do we write exit procedure or function in javascript to exit middle of the program? | Jevin | Software Development | 3 | 22-09-2009 09:38 AM |
| How to write javascript isobject | Zombi | Software Development | 3 | 28-07-2009 11:54 AM |
| How to write Cookies in Javascript | Janet J | Windows Software | 3 | 30-01-2009 10:50 PM |