Support Forums

Old 04-24-2009, 05:16 PM   #1
Member
 
Join Date: Apr 2009
Location: South of Spain
Posts: 33
Rep Power: 1
magicosta is on a distinguished road
Default javascript question

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)
magicosta is offline   Reply With Quote
Old 04-24-2009, 05:44 PM   #2
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,776
Rep Power: 110
Eric Barnes is a jewel in the rough
Default

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
Eric Barnes is offline   Reply With Quote
Old 04-24-2009, 05:54 PM   #3
Member
 
Join Date: Apr 2009
Location: South of Spain
Posts: 33
Rep Power: 1
magicosta is on a distinguished road
Smile

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
magicosta is offline   Reply With Quote
Old 04-24-2009, 06:35 PM   #4
Member
 
Join Date: Apr 2009
Location: South of Spain
Posts: 33
Rep Power: 1
magicosta is on a distinguished road
Default

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!
magicosta is offline   Reply With Quote
Old 04-24-2009, 06:52 PM   #5
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,776
Rep Power: 110
Eric Barnes is a jewel in the rough
Default

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>
That should work and if you want to use an apostraphe put a backslash in front:
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
Eric Barnes is offline   Reply With Quote
Old 04-24-2009, 07:01 PM   #6
Member
 
Join Date: Apr 2009
Location: South of Spain
Posts: 33
Rep Power: 1
magicosta is on a distinguished road
Default

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.
magicosta is offline   Reply With Quote
Old 04-25-2009, 01:38 PM   #7
Member
 
Join Date: Apr 2009
Location: South of Spain
Posts: 33
Rep Power: 1
magicosta is on a distinguished road
Default

Ok, I found out the solution.

Everything is explained in overLIB documentation (overLIB - Documentation)
magicosta is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 04:03 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0