Say that I write an article or document about a certain topic, but the content is meant for readers with certain prior knowledge about the topic. To help people who don't ... |
I have a fairly basic thumbnail-and-view page going. As each thumbnail is clicked, the central pane shows the full-size image. This bit works fine - I'm using Javascript to ... |
I have a DIV with a script as shown below
<div style="text-align:center">
<script type='text/javascript' language='JavaScript' src='http://xslt.alexa.com/site_stats/js/t/a?url=www.mysite.com'></script>
</div>
What I ... |
I have a simple form for shipping options and I am using javascript to auto submit the form when someone selects a new option from the drop down list.
In order to ... |
In my webapplication I hide an iframe using jquery hide() function.
Surprisingly firefox reload the content of iframe when the iframe is hidden.
Is this a known problem? Is there a workaround?
I also ... |
I am looking to hide a number of DIVs based upon the specific text of another DIV. My Javascript (below) isn't working.
The HTML:
<div id="LEGEND">abAB</div>
<div id="small-a"></div>
<div id="small-b"></div>
<div id="big-a"></div>
<div ...
|
I am writing a small HTML+JavaScript (so to call) application. User is given two choices (radio buttons) and depending what did he choose, I display content "A" or content "B" under ... |
|
I would like to show or hide a header element (e.g. <h3></h3>) based up a div tag that either contains content or not. The content is dynamically added, but the header ... |
I was searching for a pure CSS answer to hiding and showing content but after no luck i have been playing around with a piece of javascript code. My question is ... |
Using an onclick function, I'm trying to take the content from a hidden div, and place it into a visible div. Instead of the content showing up, I get [object HTMLDivElement] ... |
though there are many codes available, but i want the simplest and shortest code for an option for show/hide content.( it would be good if the text 'show/hide' can be replaced ... |
Should be simple and clear, but I dont get what is wrong here. Simple javascript show/hide content. Tryed both display - block/none and visibility - show/hidden. Not working..
It works if all ... |
No Philip M, I'm not trying to prevent user to View the source, what I'm trying to achieve is to prevent hidden divs and all of their content to be loaded in the beginning when user enters the site, because I want to use one page for whole site and I want to reduce wait time for loading site. I hope ... |
|
function toggleLayer(whichLayer) { if (document.getElementById) { // this is the way the standards work var style2 = document.getElementById(whichLayer).style; style2.display = style2.display? "":"block"; } else if (document.all) { // this is the way old msie versions work var style2 = document.all[whichLayer].style; style2.display = style2.display? "":"block"; } else if (document.layers) { // this is the way nn4 works var style2 = document.layers[whichLayer].style; style2.display ... |
Hi I have a div ( and no if there are no tags within it. Is this possible? |
|
|
Hi, First let me admit that my Javascript coding skills are lacking. I know enough to implement and slightly modify existing code, but not enough to write a complex script from scratch. With that said, I'm trying to implement a navigation system like the left vertical links on this page: http://www.umassd.edu/students/ I looked into using JQuery tabs, but the ul would ... |