|
|
#1 |
|
Member
Join Date: Apr 2009
Location: South of Spain
Posts: 33
Rep Power: 1 ![]() |
Hi,
In my registration user page (userjoin.php), when the mouse goes over the picture ( which is a question mark), I would like a text to come up as it is set up for example in admin/settingsimages.php. So, I have added the following code: <a href="javascript:void(0);" onmouseover="return overlib ('{$smarty.const.LANG_VERIFY}')"onmouseout="return nd();"><img src="templates/default/images/help.png" /></a> The picture shows up but there is no text which comme up when the mouse goes over the picture!! It will be too simple!! I have tryed all the day long and I am a bit !!Thank you for your help (v4.1.2 developper default template) |
|
|
|
|
|
#2 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,776
Rep Power: 110 ![]() |
It takes a few more steps.
You need to add this to the header: <script type="text/javascript" src="javascript/overlib/overlib.js"><!-- overLIB (c) Erik Bosrup --></script> Then just below your opening body tag: <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div> After adding those it should work.
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules |
|
|
|
|
|
#3 |
|
Member
Join Date: Apr 2009
Location: South of Spain
Posts: 33
Rep Power: 1 ![]() |
Thank you for your quick reply.
You know what....It's working!!! Fantastic!! Thank you very much. For sure, I was not able at all to find out alone that code!! Thanks a lot. Now I will try to understand it! Thank again ![]() ![]()
|
|
|
|
|
|
#4 |
|
Member
Join Date: Apr 2009
Location: South of Spain
Posts: 33
Rep Power: 1 ![]() |
hi,
In fact, i just need something else! In my code <a href="javascript:void(0);" onmouseover="return overlib('{$smarty.const."text"}')" onmouseout="return nd();"><img src="templates/default/images/help.png" /></a> How do I do to put the text which will come up when the mouse goes over the picture.. I thought just to add in english.php something like: define('LANG_SCHOOL_CHILDREN, School(s) college(s) or university(ies) where your children are registered'); and put LANG_SCHOOL_CHILDREN to replace "text" in the code above but it doesn't work!
|
|
|
|
|
|
#5 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,776
Rep Power: 110 ![]() |
I would probably just add it in manually instead of using the language file:
Code:
<a href="javascript:void(0);" onmouseover="return overlib('This is my message.')" onmouseout="return nd();"><img
src="templates/default/images/help.png" /></a>
Code:
<a href="javascript:void(0);" onmouseover="return overlib('This is a message from Johnny\'s computer.')" onmouseout="return nd();"><img
src="templates/default/images/help.png" /></a>
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules |
|
|
|
|
|
#6 |
|
Member
Join Date: Apr 2009
Location: South of Spain
Posts: 33
Rep Power: 1 ![]() |
Ok, it's working.Thank you very much
By the way, where I do I have to go now to modify the background, the text color or things I would like to modify in the presentation of that frame which come up when the mouse goes over the picture. |
|
|
|
|
|
#7 |
|
Member
Join Date: Apr 2009
Location: South of Spain
Posts: 33
Rep Power: 1 ![]() |
Ok, I found out the solution.
Everything is explained in overLIB documentation (overLIB - Documentation) |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| using javascript on homepage | DGiscombe | v4.1 Questions & Support | 8 | 02-24-2009 12:01 PM |
| Javascript question | canariasdata | v4 Questions & Support | 7 | 06-17-2008 10:38 AM |
| Javascript - HELP!! | objelland | v3.1 Questions & Support | 18 | 03-31-2008 06:55 AM |
| Javascript Question AJAX | Maffo | v3.1 Questions & Support | 5 | 05-24-2007 02:29 PM |