•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 427,223 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,289 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 949 | Replies: 3
![]() |
•
•
Join Date: Jul 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
Hello!
I cant figure out, how can i accomplish the following: i need to show a close button over an image when mouse is hovering over it. Clicking this button will delete the image. The problem, ofcourse, is not the image deletion, but how to show a close button in the image corner on mouse hover?
The image is simple img tag.
Thanks!
I cant figure out, how can i accomplish the following: i need to show a close button over an image when mouse is hovering over it. Clicking this button will delete the image. The problem, ofcourse, is not the image deletion, but how to show a close button in the image corner on mouse hover?
The image is simple img tag.
Thanks!
•
•
Join Date: Jul 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
-----DIV-----------------
[div] X
[ background image ]
--------------------------
...is one of the ways to go.
You can use the css to position & style the "x" letter with border box etc.
Now, what's eating me is: are you planning to show it anytime later after it is closed or not?!!
Thanks for answering! The images are located in LI tags. After deletion, i remove the needed LI tag from the UL and i dont need to show the image after closing anymore. The user can add another images to the UL, but if he closes one, it's gone.
I understood your answer, but i want to try not to use the image as background, since those images are used as links.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Contactless Card Reader problem (VB.NET)
- Firefox Compatibility help with script (JavaScript / DHTML / AJAX)
- Unresponsive script (DaniWeb Community Feedback)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: download fckeditor
- Next Thread: Need help in sudoku coding 4 by 4 dimentional.


Linear Mode