top



How can I add a variable in a tooltip because this doesn't work :(

Code:
  <script type="text/javascript" language="javascript" src="http://forumulandrei.webs.com/Tooltip/tooltip.js"></script>
<link rel="stylesheet" type="text/css" href="http://forumulandrei.webs.com/Tooltip/style.css" />


Code:
 <span class="hotspot" onmouseover="tooltip.show('Variable here ');" onmouseout="tooltip.hide();">Treci mouseul peste scris</span>




Where'd you find the script?

first of all avoid inline event handlers and use one of the following:

(addeventlistener(w3c),attachevent(ie))
(event objects)

using inline handlers or handlers as properties will bring erros Wink

I did actually think about that.. Why not try another tip, like Soh Tanaka's jQuery one?

So you know how to solve the problem? I will try and another script if needed , but i'm not good at jQuery , if you can explain the steps .

Hi,
Where'd you find the tip?

here http://www.forumulandrei.com/t822-tooltip but i will try anything !

variables like the USERNAME and the others?

well first of all you have to remove the inline event handler unless you like the style of the 90's ;D

Gangstar15 variables like

Code:
{catrow.forumrow.USER_LAST_POST}
and i want to use another tooltip Smile

You do use it in the tempolates, right?

Razvan wrote:Gangstar15 variables like
Code:
{catrow.forumrow.USER_LAST_POST}
and i want to use another tooltip Smile

this wouldn't work in tooltips for the (title="text")
You need to make your own tooltip for this using simple jquery and css (:

can you give me a link and tell me the steps and yes i want to use it in templates Smile

[wow]custom:Ahem,,Guest,/t[/wow]

Yes like that Saxaca Smile how can i put the variable from the templates like this ?

Saxaca if i put the code from your post in work but if i put the code in a templet doesent work look what i tried Happy


Code:
  <td><div id="chenar">{catrow.forumrow.POSTS} {L_POSTS} in {catrow.forumrow.TOPICS} [wow]custom:Ahem,{L_TOPICS},/t[/wow] {L_TOPICS} </div></td>



<td> 

what is the problem ?Happy

You cannot use BBCodes in templates. And, the comma needs to be double for the script to work. But, since this BBCode only generates a javascript, you should be able to do this:

Code:
<script src="http://lootup.rouks.net/bbloot.php?obj=custom:Topics,,{L_TOPICS},/t/en"></script>

In dosen't work i when i put the mouse nothing appears man i want to do like here when i put the mouse on the bold button will apeear a tooltip that says Bold in a black chenar Happy


look how work the code you given to me http://razvan-teste.forumgratuit.ro/?tt=1

[locked]