Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: CHALLENGE: Using this XHTML code ONLY, Please help open target in new window!!!  (Read 4168 times)

0 Members and 1 Guest are viewing this topic.

widdowspider

    Topic Starter


    Newbie

  • Casting my web
    • Experience: Beginner
    • OS: Unknown
      ???

    Good morning all! Ready for challenge?

    I am struggling with the following code formation...The web platform I am using MUST use this mouseover code, but I am struggling to find out how to open the link in a new window - that works!?!?! Errors are flying all over the place!


    Code: [Select]
    <table border="0">
    <tbody>
    <tr>

    <td><a onmouseover="this.style.backgroundImage='url(~/media/1A96CA8A35B942E788B46920655A7CEA.ashx?w=184&amp;h=111&amp;as=1)'" title="Beca's history and servies." style="DISPLAY: block; BACKGROUND-IMAGE: url(~/media/CABA6A304EAA4196900D940D236932C6.ashx?w=184&amp;h=111&amp;as=1); WIDTH: 184px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 106px" onmouseout="this.style.backgroundImage='url(~/media/CABA6A304EAA4196900D940D236932C6.ashx?w=184&amp;h=111&amp;as=1)'" href="~/link.aspx?id=F55306662A1F4A4991D22E3B4AF46358&amp;_z=z" ></a></td>

    </tr></tbody></table>

    Your help with this would be MUCH appreciated!

    Many thanks

    Your friendly widdowspider.
    x

    kpac

    • Web moderator
    • Moderator


    • Hacker

    • kpac®
    • Thanked: 184
      • Yes
      • Yes
      • Yes
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 7
    Use the target attribute. Unless of course if you're using XHTML Strict, you'll need to use javascript.

    angel2011



      Rookie

      • Experience: Beginner
      • OS: Unknown
      _target="blank"  ;D

      kpac

      • Web moderator
      • Moderator


      • Hacker

      • kpac®
      • Thanked: 184
        • Yes
        • Yes
        • Yes
      • Certifications: List
      • Computer: Specs
      • Experience: Expert
      • OS: Windows 7
      _target="blank"  ;D
      No,

      Code: [Select]
      <a href="" target="_blank">

      angel2011



        Rookie

        • Experience: Beginner
        • OS: Unknown
        lol misspelling sorry i was asleep :p

        widdowspider

          Topic Starter


          Newbie

        • Casting my web
          • Experience: Beginner
          • OS: Unknown
          Sorry guys...forgot to add that the easy solution target="_blank"....doesn't work...or if it does...have no idea where to bung it.

          kpac

          • Web moderator
          • Moderator


          • Hacker

          • kpac®
          • Thanked: 184
            • Yes
            • Yes
            • Yes
          • Certifications: List
          • Computer: Specs
          • Experience: Expert
          • OS: Windows 7
          Add it to the <a> tag.

          Code: [Select]
          <a href="whatever" target="_blank">some text</a> <!-- opens link in new window -->