I think I know what the problem is...
The "½" that is shown in the code is a special character and the browser can't interpret it unless you use an HTML entity. That's why you get the strange...
That line of code is checking for 2 conditions. That's what the "&&" characters are testing... to see that both conditions qualify to execute the code that follows.
I'm not sure about the weird symbol. But given that the code is 6-7 years old (even after I found an update to the code) there may be some deprecated JS getting used.
My client has an iframe-type page that utilizes some PHP code to grab content from a 3rd party to display on the page. This "page" has a few navigation buttons that serve up new information.
What I'm trying to do:
I'm working on a site that employs several different agents. On each agent's page, there will be a link to get a quote from them. I'm trying to pass the agents name though to...
Arty,
That worked. I made the assumption that if the value wasn't specified it defaulted to whatever the option is. I thought that had worked for me in the past.
<script type="text/javascript"><!--
function divWrite(num) {
var num = document.travellers.num.options;
numTravel = new Array();
for (i=1; i<=num; i++) {
numTravel[i]...
Ugh. I've never messed with arrays before. But I just read up on them a bit and made another attempt. Obviously this is not working. Feel free to laugh out loud at this code:
<script type="text/javascript"><!--
var lastDiv = "";
function showDiv(divName) {
// hide last div
if (lastDiv) {
document.getElementById(lastDiv).className = "hiddenDiv";
}
//if value...
I'm using a dropdown menu to allow a number to be selected (1-20). I have
hidden divs setup for each number. If 1 is selected, div1 should display. If 2 is selected, div1 and div2 should display....
I have 7 checkboxes in a form, but for simplicity, let's say I have have 3 (amongst other items) and would like to email the individual checkbox results only if it is checked. For example:
By default, page 1 that has all of the JS loads a list of exercises without any description showing. Once an exercise is clicked on, it shows the exercise underneath the list and jumps down to the...
The function switchid() is located in page 1 and it does use id instead of name. I added your code to page 1 but didn't get it to work.
Here is the code for switchid():
I have a page (we'll call it page1.htm) that uses named anchors along with JS and CSS that, when clicking a link, it will unhide/show the content AND jump to the named anchor so that the content is...
I tried floating it left and for some reason it didn't stop floating after the </li></ul>. It did accomplish what I wanted it to do... it just wouldn't stop accomplishing.