User Profile

Collapse

Profile Sidebar

Collapse
mrking
mrking
Last Activity: Nov 17 '10, 09:34 PM
Joined: Feb 22 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I am referring to the list in the drop down for 'locations'.

    Yes, there are two events listed for West Vancouver. That location should be the only one showing up in the 'locations' drop down menu.
    See more | Go to post

    Leave a comment:


  • mrking
    replied to Using onClick to paste code
    I tried this code but with not luck. I placed my cursor in the text box, click one of the buttons and nothing happens....
    See more | Go to post

    Leave a comment:


  • mrking
    replied to Using onClick to paste code
    Oops, thanks.

    I have multiple text boxes on one page and would like to place my cursor in a box, click the button and the text value will paste into it. Click on another text box, click, paste. Etc.

    Right now it will only paste into a text box with an id of 'answer'

    Is there a way to have it paste in whatever box I select?
    See more | Go to post

    Leave a comment:


  • mrking
    started a topic Using onClick to paste code

    Using onClick to paste code

    Hi,

    I am working on having a button click and then it will paste code into a selected box.

    I am having a little bit of an issue though.

    First my code:

    Code:
    <html>
    <head>
    
    <script type="text/javascript">
    function check(browser)
      {
      document.getElementById("answer").value=browser;
      }
    </script>
    ...
    See more | Go to post

  • Just wanted to drop by and say you don't need to use javascript at all to complete this.

    I did get it working perfectly with CSS. If anyone needs the solution you can PM me....
    See more | Go to post

    Leave a comment:


  • Yup, I understand what you are doing but my site is made with php and css using Wordpress - yes, not the best for custom work......

    and it will always call the same 'navbar' in for every page.
    See more | Go to post

    Leave a comment:


  • mrking
    started a topic Image rollover question

    Image rollover question

    Before I go ahead and implement this I need to confirm that what I want can be done.

    The standard image rollover works well, however this time I want to modify it to show the current selected button as the rollover would be until the next menu item is clicked.

    IE, lets say I have two buttons

    Company
    Contact

    non active state has the image text in grey, rolled over image text is red....
    See more | Go to post

  • Noooooooooooooo ooooooooooooooo ooooooooooooooo ooo

    :)

    Thanks for the info.
    See more | Go to post

    Leave a comment:


  • Thanks, the external file worked great. :)

    I can get the radio buttons in the form no problem and have the new calculation for the centimeter option but how do i tell which one to use.

    Code:
    <input type="radio" name="inches" onclick="check(this.value)" value="units">Inches<br />
    <input type="radio" name="cm" onclick="check(this.value)"
    ...
    See more | Go to post

    Leave a comment:


  • mrking
    replied to Calculation script
    in PHP
    Perfect! Thanks everyone!!!
    See more | Go to post

    Leave a comment:


  • Just tried it.

    It works in that it will show the rolled over image I want after it is clicked, however it constantly shows after others are clicked as well.

    Is there a way to revert it to the original image state once another menu link is selected?...
    See more | Go to post

    Leave a comment:


  • You need to use something more like this:

    Code:
    .companyrollover a{
        display: block;
        width: 95px;
        height: 20px;
        background: url(image-name.jpg) no-repeat;
        text-decoration: none;
        float: left;
             }
     
    .companyrollover a:hover {
        background-position: -95px 0;
               }
    
    .companyrollover a:current{
    	background-position:
    ...
    See more | Go to post

    Leave a comment:


  • mrking
    started a topic image rollover plus active state - possible?

    image rollover plus active state - possible?

    Hello,

    I have a test site running at http://artbymichaelkin g.com/DS/

    As you can see with the navigation I have the image rollover. I do this with CSS via:

    Code:
    .companyrollover a{
        display: block;
        width: 95px;
        height: 20px;
        background: url(images/menubar/COMPANY.jpg) no-repeat;
        text-decoration: none;
        float: left;
             }
    ...
    See more | Go to post

  • I have one more afterthought addition I would like to add.

    I would like to give the option of "inches" or "Centimeter s: to provide the values they are entering

    I think it can be done with radio boxes and depending on the radio box ticked it will perform a different calculation. Correct?

    Oh, and is there anyway to hide the formula from the general public. If you decide to look at the page...
    See more | Go to post

    Leave a comment:


  • HA, BINGO.

    You're the best!!!

    Thank you for all your help and code writing. You saved me days working this out.

    Cheers,

    Michael...
    See more | Go to post

    Leave a comment:


  • Thanks! I would have never got to that. Once I see it written it makes sense.

    I use math.round and it will round up to the nearest integer, but I am looking to round up to the nearest 10th.

    So, 491=500; 348=350... etc.

    Is there an easy way to do this?

    Code:
    <html>
    
    <head>
    <script type="text/javascript">
    
    function createCost()
    ...
    See more | Go to post

    Leave a comment:


  • Thanks for the info...

    This is my start, but there is a lot wrong with it of course.

    I have no idea how to start a calculator function so far. Still digging. help would be a godsend. :)

    Code:
    <html>
    <head>
    <script type="text/javascript">
    
    
    function createCost()
    {
    alert(document.getElementById("h1").value);
    alert(document.getElementById("w1").value);
    ...
    See more | Go to post

    Leave a comment:


  • mrking
    started a topic Calculation script to display on same page

    Calculation script to display on same page

    Hi,

    First time in the Java section here.

    I have an HTML form and a PHP script to do a simple calculation but it has to take me to a different page for the results.

    The calculator is really simple. The user enters just height and width and the calculator applies the formula, then display the answer to the nearest 10th.

    [PHP]
    <?

    $cost=((($_REQU EST["height"]*$_REQUEST["width"])+160)*1.65);...
    See more | Go to post

  • mrking
    replied to Calculation script
    in PHP
    i've tried this:

    [PHP]
    <?

    $cost=((($_REQU EST["height"]*$_REQUEST["width"])+150)*1.65);

    echo "The cost of the commission will be " .round($cost);

    ?>
    [/PHP]


    That just rounds it up to a number with no decimals. Any advice on how to round it up to the nearest 10th?
    See more | Go to post

    Leave a comment:


  • mrking
    replied to Calculation script
    in PHP
    This is my scripts so far:

    [PHP]
    <?PHP
    $cost = ((($_REQUEST["height"]*$_REQUEST["width"])+150)*1.65);
    echo "The cost of the commission will be " .$cost;
    ?>
    [/PHP]

    Code:
    <form action="calculate.php" method="get">
    <td align="left">
    Height:<input type="text" size="4" name="height">
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...