Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Expand Collapse text based on Image Click location

Status
Not open for further replies.

yaknowss

Programmer
Apr 19, 2012
69
0
0
US
I have an image that is a map of the USA. [URL unfurl="true"]http://www.tri-ed.com/branchmap.aspx[/url].
I want to have expandable/collapsible text displayed based on which city is clicked from the image Ex. Seattle would display Seattle branch info....Nashville would display Nashville info..And so on. I thought I could use GetElementbyID, but, not sure. Any other suggestions are greatly appreciated.
 
Now they want this code to work in wordpress too!?! and it does not. :\
 
wordpress server side is plain php.

wordpress client side is plain javascript and html.

if the code is compliant html and javascript then it will work whatever the framework. there is no 'in wordpress'.

 
Why is it not working when I apply code to WordPress site?
 
mosst likely because you have done something wrong. we cannot be more specific unless you share your site or post your templates
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top