Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Loading images on mouse over
fabiomcosta
Newbie

Posts: 1
Registered: 7/31/2006
Location: Brazil
Member Is Offline
posted on 7/31/2006 at 01:36 PM Reply With Quote
Loading images on mouse over


Is there a way to load the images on the hint when the onmouseover event happens? I want it because my site haves a lot of pictures on the hints, and it's kind of heavy... help plz! :S
View User's Profile View All Posts By User U2U Member
Arc
Junior Member

Posts: 6
Registered: 3/27/2007
Member Is Offline
posted on 3/29/2007 at 07:44 PM Reply With Quote

Here is a simple sample of loading an image with hints

Code:

<!-- Link Tigra Hints script file to your HTML document-->
<script language="JavaScript" src="hints.js"></script>

<script language="JavaScript">
var HINTS_CFG = {
'follow' : true,
'top' : 1, // a vertical offset of a hint from mouse pointer
'left' : 1, // a horizontal offset of a hint from mouse pointer
'show_delay' : 500, // a delay between object mouseover and hint appearing
'hide_delay' : 90000, // a delay between hint appearing and hint hiding
'wise' : true, // whether a tooltip should always be visible in full
'z-index' : 0 // a z-index for all hint layers
},

HINTS_ITEMS = [
"<img src='test.jpg'>", // a hint #0

'A hint for a link #2', // a hint #1
'A hint for a link #3', // a hint #2
'A hint for a link #4', // a hint #3
'A hint for a link #5' // a hint #4
];
var myHint = new THints (HINTS_CFG, HINTS_ITEMS);

</script>

<img src="test.jpg" width="120" height="96" onMouseOver="myHint.show(0)" onMouseOut="myHint.hide()">
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
 Product Demonstrations Live Demo
Free Download Free Download
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Support Forum
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004