Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    New Coder
    Join Date
    May 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS code for sending to a site

    I think I asked a question earlier in a way that was just confusing.
    Earlier in the code to a web site I have the code defining a button and this is the code that makes it function to the point of changing color. What I am trying to figure out is what code needs to be added to cause clicking on this button to send me to a specific web site where I would regularly put
    <A href="etc., etc.".com></A>

    It is probably very simple but I can't seem to make anything work.

    <input
    type="button"
    name="groovybtn2"
    class="groovybutton"
    value="Page Two"
    title=""
    onMouseOver="goLite(this.form.name,this.name)"
    onMouseOut="goDim(this.form.name,this.name)">

    Thank You

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Your question wasn't confusing. You just didn't seem to understand the answers given to you.
    http://www.codingforums.com/showthread.php?t=86101
    You need to use onclick to get it to do anything.
    Code:
    onclick="window.location = 'blah.html'"
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    May 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    great help

    I put the code that you gave me into the HTML and it worked perfectly. It just took a second to make sure that all the quotation marks were correct and to put it inside the brackets.


    onMouseOver="goLite(this.form.name,this.name)"
    onMouseOut="goDim(this.form.name,this.name)"
    onclick="window.location = 'Page2.htm'">

    Thank you very much

  • #4
    New Coder
    Join Date
    May 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    another CSS question

    What do I have to add to the code to put the put this into the correct frame?
    In regular code it is target="frame2"
    <a href="Page2.htm" target="frame2">Page Two</a>

  • #5
    New Coder
    Join Date
    May 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    another CSS question

    What do I have to add to the code to put the put this into the correct frame?
    In regular code it is target="frame2"
    <a href="Page2.htm" target="frame2">Page Two</a>

  • #6
    New Coder
    Join Date
    May 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    another CSS question

    What do I have to add to the code to put the put this into the correct frame?
    In regular code it is target="frame2"
    <a href="Page2.htm" target="frame2">Page Two</a>

  • #7
    New Coder
    Join Date
    May 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    another CSS question

    What do I have to add to the code to put the put this into the correct frame?
    In regular code it is target="frame2"
    <a href="Page2.htm" target="frame2">Page Two</a>

  • #8
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I'm not repeating myself. Look at the original thread you started. The answer is there.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #9
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Wrong title

    First of all: none of this has anything to do with CSS, so your posting titles are misleading.

    Second: why on earth did you post the exact same question four times?!!

    Looks like you could do with an excercise in reading, and patience.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #10
    New Coder
    Join Date
    May 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm sorry,
    my computer froze or something and when I hit "submit reply" nothing happened so when I came back a few minutesa later I was still on the same screen. I did it several times and quit. I came back about fifteen minutes later and all four or five had posted. I did not do it on purpose.
    Again,
    Sorry
    PS I do not know a lot about this code (obviously) When it was given to me I was told that it was CSS and since it was new to me I believed them.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •