Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. JerryH

    Function within a function

    I thought of moving CountIt out of CountDown last night and was having problems with counts being global (just as you said BillyRay). I've reworked the code this morning and here is the result: <script language="JavaScript1.2" type="text/javascript"> function CountIt(){ var now=new Date()...
  2. JerryH

    Function within a function

    I'm attempting to build a second timer using JavaScript. The following code works: <script language="JavaScript1.2" type="text/javascript"> counts=10 var start=new Date(); start=Date.parse(start)/1000; function CountIt(){ var now=new Date(); now=Date.parse(now)/1000; var...
  3. JerryH

    Newbie Associative Array Question

    Here is my array: $option = array ( 'fruit' => array ('banana','apple'), 'vegetable' => array ('cucumber','lettuce'), 'nut' => array ('almond','peanut') ); All I want to do is print the second key. How can I write this? <?php print $option[key[1]] ?> I want the above to print out 'vegetable'.
  4. JerryH

    Floating Bar Problem

    Thanks for the response cLFlaVA. For some reason your code was popping up errors. However, I got my old code to work by simply adding a comment (<!-- -->) as the first line of the file, right before the DOCTYPE. This effectively puts IE6 in quirks mode and... vowala! Actually, I stopped using...
  5. JerryH

    Floating Bar Problem

    The XHTML & JavaScript code below will display a floating green bar. It stays at the top of the page and should reposition itself whenever the user scrolls thru the page. It works fine in IE5 and Mozilla (Firefox) but not in IE6. In IE6 with Service Pack 2 installed, the bar always remains at...
  6. JerryH

    navigate to anchors within the current page

    Thanks for all the responses, I have it working now.
  7. JerryH

    To Close or To Open, tis the Question...

    You need to add a focus(): a = window.open(&quot;&quot;,&quot;popupimage&quot;,windowprops); a.focus(); a.document.open();
  8. JerryH

    navigate to anchors within the current page

    The following is a script I found at irt.org: <script language=&quot;JavaScript&quot;><!-- function go() { location.href = '#' + document.myform.mylist.options[document.myform.mylist.selectedIndex].value; } //--></script> <form name=&quot;myform&quot;> <select name=&quot;mylist&quot;>...
  9. JerryH

    Playing sound in new browsers

    So I followed the directions at: http://developer.irt.org/script/390.htm to use the embed command to play a wave file. Below is the code: <html> <body> <script language=&quot;JavaScript&quot;><!-- function playSound() { document.firstSound.play(); } //--></script> <a...
  10. JerryH

    Adding a link that will recommend my site

    Of course the above advise is for only setting up the form.&nbsp;&nbsp;You will still need a cgi script or something to do the actual work of sending the mail.&nbsp;&nbsp;If you have access to your CGI bin you may be able to find a script to do what you want.&nbsp;&nbsp;If you already have a...
  11. JerryH

    window size?

    I believe that only a parent window can control or set the parameters for a new child window.&nbsp;&nbsp;In javascript you make and set parameters for new window using the window.open command.&nbsp;&nbsp;In short, I'm guessing that no, you can't do it.
  12. JerryH

    A question about frames and iframes

    I believe what you want to do is to send a value from your menu bar (top2.html) to the default.html.<br><br>The link in top2.html would read something like:<br><br>&lt;A href=&quot;default.html?listing.html#23&quot;&gt;<br><br>and have default.html parse the address line using...
  13. JerryH

    Frame Fresh

    This is almost working...&nbsp;&nbsp;I'm hoping someone here can help.&nbsp;&nbsp;Here are links on my index.html:<br><br>&lt;A HREF=&quot;frame.html?history.html&quot;&gt;History&lt;/A&gt; <br>&lt;A HREF=&quot;frame.html?route.html&quot;&gt;Route&lt;/A&gt; <br>&lt;A...
  14. JerryH

    How do you send a URL as a variable to a frame?

    Thanks for the tips!&nbsp;&nbsp;I found a good article on what I wanted to do at <A HREF="http://www.irt.org/articles/js190/index.htm" TARGET="_new">http://www.irt.org/articles/js190/index.htm</A> It also will not allow a page to be loaded without your frameset, as well as, break out of someone...
  15. JerryH

    How do you send a URL as a variable to a frame?

    I'm trying to send a url to a 2nd frame of a new frameset. The url is in the form of a variable called &quot;menu.&quot; Eventually I will get the value of &quot;menu&quot; from another script but for testing I'm just setting the value to &quot;history.html.&quot; Below is the script I'm trying...

Part and Inventory Search

Back
Top