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. ASP.NET
  4. Attributes of a listbox

Attributes of a listbox

Scheduled Pinned Locked Moved ASP.NET
helpjavascripttutorialquestion
2 Posts 1 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.
  • C Offline
    C Offline
    ccotton333
    wrote on last edited by
    #1

    Hey i have a issue i'm trying to work out. OK i hake a listbox(lstResults) and on load of the form I have the following setting done: lstResults.Attributes("onmouseover") = "javascript:onmouseover=alert('" & lblMessage.Text & "')" And what i'm trying to do is instead of it doing a javascript alert on the listbox, I'd like to be able to alert based on the value in the listbox being hovered over. does anyone have any ideas of how to do this? I'm sure there has to be a way to do this, but I have yet to come across anything online that talks about this type of function. any help would be greatlt appreciated. Thanks all, Chris Cotton

    C 1 Reply Last reply
    0
    • C ccotton333

      Hey i have a issue i'm trying to work out. OK i hake a listbox(lstResults) and on load of the form I have the following setting done: lstResults.Attributes("onmouseover") = "javascript:onmouseover=alert('" & lblMessage.Text & "')" And what i'm trying to do is instead of it doing a javascript alert on the listbox, I'd like to be able to alert based on the value in the listbox being hovered over. does anyone have any ideas of how to do this? I'm sure there has to be a way to do this, but I have yet to come across anything online that talks about this type of function. any help would be greatlt appreciated. Thanks all, Chris Cotton

      C Offline
      C Offline
      ccotton333
      wrote on last edited by
      #2

      Ok guys maybe this will make this idea a little more simple. I'm thinking about making a DIV tag in the HTML code to put in the place of the list box. Has anyone done the functionality that I'm trying to do? It seems simple enough using a DIV tag and Javascript but if anyone has had any experience doing this type of function and could help me figure out if this is a good way of getting this functionality to work, or is there any other alternative for this particular situation? Please let me know. Thanks, ccotton333

      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