Question:
How do I make a div come out on span mouseover? AJAX, PHP?
?
2011-08-24 07:05:19 UTC
I have a list-out of sport federations.
Formatted like this:

Sport - UEFA (textbox with their mail that can be edited directly with onchange)(-Delete button-)

All under span id='federationinfo'.
I want to create a script that will open a new div containing the information about federation (editable) onmousover a spanned federationinfo.
Note that I'm not experienced in AJAX, but I know PHP well.
Three answers:
Terry
2011-08-24 07:16:42 UTC
This can be done with AJAX. Use javascript to read from an XML file on mouseover. It's that simple.





http://www.justin-cook.com/wp/2006/11/03/how-to-load-xml-data-with-javascript-ajax-tutorial/
Bob W
2011-08-24 14:10:31 UTC
Just use javascript:





[span

onmouseover="document.getElementById('divTarget').style.display='block';"

onmouseout="document.getElementById('divTarget').style.display='none';"]

Mouseover this

[/span]

[br /] [br /]

[div id="divTarget" style="display:none;"]This is the target div![/div]





Replace all the ['s with <'s and ]'s with >'s
forever
2011-08-24 14:09:24 UTC
http://www.w3schools.com/



http://www.tizag.com/htmlT/htmlinput.php



These two websites should help you in the right direction.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...