Home arrow Forum

Remository Forum

 


Timberle

Karma: 0  
Glossarbot - OnClick calls new page - 2007/06/01 09:07 It would be nice having another option for the glossarbot. If you go over the link with mouse the popup should be shown. But by clicking on the link it should open the term in the glossar in the same or a new window. Is that possible?

Maybe I can change it by myself. I know a little bit about HTML but nothing about JavaScript. What do I have to change here (i think its the right part of the glossarbot.php):

Code:

                 switch ($parm['outputmode']) {                         case 1:                                 $descereg_replace("<br />|<p>"" "$desc);                                 $link '<a style="'.$parm['css'].'" href="javascript:void(0)" title="'.strip_tags($desc).'">' $parm['image'] . $trimTerm.'</a>';                                 break;                         case 2:                                 //Get the defaul text of the module                                 $link '<a class="mosinfopop" style="'.$parm['css'].'" href="javascript:void(0)" onmouseover="javascript:document.getElementById("glossarbox"«») .innerHTML='<b><u>'.$orgTerm.'</u></b><br>'.addslashes(htmlspecialchars($desc)).''" onmouseout="javascript:document.getElementById(" glossarbox"«»).innerHTML=''.$defaultHTML.''">'.$parm['image'] . $trimTerm '</a>';                                 break;                         case 3:                                 $link '<a class="mosinfopop" style="'.$parm['css'].'" href="javascript:void(0)" onclick="return overlib('' . addslashes(htmlspecialchars($desc)) . '',  STICKY, CLOSECLICK, CAPTION, '' . $orgTerm . '',' strtoupper($parm['position']) . ',' strtoupper($parm['alignment']) . ', WIDTH, ' $parm['width'] . ', FGCOLOR, '' . $parm['fgcolor'] . '', BGCOLOR, '' . $parm['bgcolor'] . '', TEXTCOLOR, '' . $parm['txtcolor'] . '', CAPCOLOR, '' . $parm['capcolor'] . '', OFFSETX, ' $parm['offset_x'] . ', OFFSETY, ' $parm['offset_y'] . ');">' $parm['image'] . $trimTerm '</a>';                                 break;                         case 4:                                 $link '<a class="mosinfopop" style="'.$parm['css'].'" href="javascript:void(0)" onmouseover="return overlib('' . addslashes(htmlspecialchars($desc)) .  '', CAPTION, '' . $orgTerm . '',' strtoupper($parm['position']) . ',' strtoupper($parm['alignment']) . ', WIDTH, ' $parm['width'] . ', FGCOLOR, '' . $parm['fgcolor'] . '', BGCOLOR, '' . $parm['bgcolor'] . '', TEXTCOLOR, '' . $parm['txtcolor'] . '', CAPCOLOR, '' . $parm['capcolor'] . '', OFFSETX, ' $parm['offset_x'] . ', OFFSETY, ' $parm['offset_y'] . ');" onmouseout="return nd();"                         onclick="return overlib('' . addslashes(htmlspecialchars($desc)) . '',  STICKY, CLOSECLICK, CAPTION, '' . $orgTerm . '',' strtoupper($parm['position']) . ',' strtoupper($parm['alignment']) . ', WIDTH, ' $parm['width'] . ', FGCOLOR, '' . $parm['fgcolor'] . '', BGCOLOR, '' . $parm['bgcolor'] . '', TEXTCOLOR, '' . $parm['txtcolor'] . '', CAPCOLOR, '' . $parm['capcolor'] . '', OFFSETX, ' $parm['offset_x'] . ', OFFSETY, ' $parm['offset_y'] . ');">' $parm['image'] . $trimTerm '</a>';                                 break;                         default:                                 $link '<a class="mosinfopop" style="'.$parm['css'].'" href="javascript:void(0)" onmouseover="return overlib('' . addslashes(htmlspecialchars($desc)) .  '', CAPTION, '' . $orgTerm . '',' strtoupper($parm['position']) . ',' strtoupper($parm['alignment']) . ', WIDTH, ' $parm['width'] . ', FGCOLOR, '' . $parm['fgcolor'] . '', BGCOLOR, '' . $parm['bgcolor'] . '', TEXTCOLOR, '' . $parm['txtcolor'] . '', CAPCOLOR, '' . $parm['capcolor'] . '', OFFSETX, ' $parm['offset_x'] . ', OFFSETY, ' $parm['offset_y'] . ');" onmouseout="return nd();" >' $parm['image'] . $trimTerm '</a>';                                 break;                 }



to make it not only show the popup but going to the glossar by clicking? (where can i set the http://...link ?)

Thx for every help.

Post edited by: Timberle, at: 2007/06/01 08:07
  | | Sorry, you do not currently have permission to write here.

      Topics Author Date
    thread link
Glossarbot - OnClick calls new page
Timberle 2007/06/01 09:07

Menu

Budding author?

Could you write about software?  Packt Publishing is looking for authors for its new series of Beginners' Guides.  Take a look at their web site to find out more.

Login Form

Username

Password

Remember me
Password Reminder
No account yet?
Create one

Who is Online

Remository welcomes guests and registered users.

We have 4 guest online