how do i do this

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
gurjit
Forum Contributor
Posts: 314
Joined: Thu May 15, 2003 11:53 am
Location: UK

how do i do this

Post by gurjit »

hi

i want to be able to do a onmouseover event similar to when you hover over the "Wireless router" link or any link that is underlined in:

http://www.computing.net/security/wwwbo ... 16406.html


any ideas, how to achieve this with my own content fed in from a database?
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

You could connect an onmouseover event to an XMLHttpRequest object
User avatar
gurjit
Forum Contributor
Posts: 314
Joined: Thu May 15, 2003 11:53 am
Location: UK

Post by gurjit »

do you know any sites that do this or have code snippets?
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

I don't know that there are any, but javascript libraries like prototype.js and scriptaculous would make development a lot easier.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

You would need to build a mini-api (in php or otherwise) for a javascript functions to talk to and get information, so your links would basically be assigned an onmouseover which trigger a javascript function that requests information based on that link. If you really wanted to get tricky, you'd have your javascript traverse the document and assign the links onmouseover events dynamically. Are you a javascripter?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Yes, there are apps out there that do this. For the life of me I cannot think of one, but there are several sites that host the databases that house the keyword linkers, and others that offer scripts. I would be willing to bet, however, that this little snippet from that pages source might be able to lead you in the right direction...

Code: Select all

<!-- Kontera ContentLink  -->
<script type="text/javascript">
var dc_UnitID = 14;
var dc_PublisherID = 4915;
var dc_AdLinkColor = 'green';
var dc_adprod='ADL';
var dc_open_new_win = 'yes';
</script>
<script type="text/javascript" src="http://kona.kontera.com/javascript/lib/KonaLibInline.js"></script>
<!-- Kontera ContentLink  -->
<SCRIPT LANGUAGE="JavaScript">var tcdacmd="dt";</SCRIPT>
<SCRIPT SRC="http://an.tacoda.net/an/13812/slf.js" LANGUAGE="JavaScript"></SCRIPT>
User avatar
gurjit
Forum Contributor
Posts: 314
Joined: Thu May 15, 2003 11:53 am
Location: UK

Post by gurjit »

Hi Guys,

I just want to know how to bring up the popup and make it stay there. I'm not looking for a keyword search.

I have 27000 records from a database. I want to put a on mouseover event, so when you hover over the dynamic link a pop event appears and stays there.

I've been hunting around the net and just cant find any script to help do this. A start would be to know what this event s called?

Thanks for all help so far
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

Moved to Client Side
Post Reply