1
adium
Definitions on hover
  • 2009/6/20 1:13

  • adium

  • Just popping in

  • Posts: 99

  • Since: 2005/1/18


I run a military site, and like every branch of the military in the world, we love acronym's. According to this DOD website there are 6,353 acronyms.

I have seen what I want done with certain ad scripts. Where various keywords that are in the forum or articles section of the site bring a pop-up while hovering over the word. I want to do something similar to this but instead use my own database with these military acronyms.

2
ghia
Re: Definitions on hover
  • 2009/6/20 7:57

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


I think the easiest way would be that you make a textsanitizer extension in the manner as eg for the flash tag (/class/textsanitizer/flash/). In that way you can surround your words with eg [acronym]DOD[/acronym]. The extension will look up the word in a table and merge the definition in the replacement html, so that when the user hoover over the word, the definition will popup.

3
adium
Re: Definitions on hover
  • 2009/6/20 17:47

  • adium

  • Just popping in

  • Posts: 99

  • Since: 2005/1/18


where do I get textsanitizer?

4
ghia
Re: Definitions on hover
  • 2009/6/20 18:02

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


It is part of XOOPS!
Check out the file path.

5
adium
Re: Definitions on hover
  • 2009/6/20 18:35

  • adium

  • Just popping in

  • Posts: 99

  • Since: 2005/1/18


Yeah, not there.

I found textsanitizer in my Frameworks folder, but it doesn't have a flash folder.

Xoops Version ----- XOOPS 2.3.3
PHP Version ----- 5.2.9
Mysql Version ----- 5.0.45
Server API ----- apache2handler
OS ----- Linux
safe_mode ----- Off
register_globals ----- Off
magic_quotes_gpc ----- Off
allow_url_fopen ----- Off
fsockopen ----- On
allow_call_time_pass_reference ----- Off
post_max_size ----- 8M
max_input_time ----- 60
output_buffering ----- 4096
max_execution_time ----- 30
memory_limit ----- 32M
file_uploads ----- On
upload_max_filesize ----- 2M

Login

Who's Online

420 user(s) are online (331 user(s) are browsing Support Forums)


Members: 0


Guests: 420


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits