Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Does anyone know why ...?

Does anyone know why ...?

Scheduled Pinned Locked Moved Web Development
toolsquestioncareer
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rojan Gh
    wrote on last edited by
    #1

    Does anyone know why when I run this script on my page for a "TD" tag: BackgroundImage = document.getElementById('SomeTD').style.backgroundImage; if(BackgroundImage.toLowerCase().indexOf('.png',0) != -1){ ImageAddress = BackgroundImage.substr(BackgroundImage.toLowerCase().indexOf('(',0) + 1, BackgroundImage.toLowerCase().indexOf(')',0) - 2); document.getElementById('SomeTD').style.backgroundImage = 'none'; document.getElementById('SomeTD').style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + ImageAddress + '\', sizingMethod=\'scale\');'; } It does the job perfectly, but it makes all the element(like button and textbox) in this table cell ("TD"), disabled and they are not click able or even the flashing cursor in textbox is not shown and you can not type in it?! :omg::wtf: Sojaner!

    G 1 Reply Last reply
    0
    • R Rojan Gh

      Does anyone know why when I run this script on my page for a "TD" tag: BackgroundImage = document.getElementById('SomeTD').style.backgroundImage; if(BackgroundImage.toLowerCase().indexOf('.png',0) != -1){ ImageAddress = BackgroundImage.substr(BackgroundImage.toLowerCase().indexOf('(',0) + 1, BackgroundImage.toLowerCase().indexOf(')',0) - 2); document.getElementById('SomeTD').style.backgroundImage = 'none'; document.getElementById('SomeTD').style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + ImageAddress + '\', sizingMethod=\'scale\');'; } It does the job perfectly, but it makes all the element(like button and textbox) in this table cell ("TD"), disabled and they are not click able or even the flashing cursor in textbox is not shown and you can not type in it?! :omg::wtf: Sojaner!

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Because basically the filter creates an image of what the element looks when it's rendered with the filter effect, and shows that instead of the element.

      --- single minded; short sighted; long gone;

      R 1 Reply Last reply
      0
      • G Guffa

        Because basically the filter creates an image of what the element looks when it's rendered with the filter effect, and shows that instead of the element.

        --- single minded; short sighted; long gone;

        R Offline
        R Offline
        Rojan Gh
        wrote on last edited by
        #3

        So, how could I deal with this stupid ie problem?

        Sojaner!

        G 1 Reply Last reply
        0
        • R Rojan Gh

          So, how could I deal with this stupid ie problem?

          Sojaner!

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          You could try to put the background on one element and the controls in another element, and position the elements absolutely so that the controls display on top of the background element.

          --- single minded; short sighted; long gone;

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups