Please pleaseee help.. How to limit words in box appear on links...?

Hi guys,
I’m working on a website here :
when mouse pointer go on links in website, an yellow (ajax/java>I’m not sure!) box opening and show intro of article. now I want to limit number of words (for example to 20 words) on this window .
to explain what I mean:
how can I do that. any idea???
Can anyone help me about this pleaseee. this is really really important to me

thank you

You basically just have something like this.

<div><p>text<div class=“inner”>DROPDOWN</div></p></div>

You hide the .inner dropdown via something like this…

p:hover .inner { margin:0;}

It’s something to that effect.

Hi Ryan, thank you so much for reply
I’m really beginner to coding and these stuff. can you please explain me which/where file should I locate and edit?
(p.s: I can send you website basic files and template if it helps)

Copy paste this example into a file, and view it on the web.

<!doctype html><html>
<style type="text/css">

div:hover .inner { margin:0;}

<div><p class="inner">DROPDOWN</p></div>

It’s a simple version of it :). If you don’t know how to take that example and conver it to what you need, it sounds like you should consult a friend or a web designer to help you along the way :).

As for limiting the article to 20 words or so, you’ll need to either use JS or PHP (or some other language) to cut off the words at 20.

Hi Ryan,
Many thanks for your helps.
Please take a look at code below. I think I found the right file after 3 days!
the file located in : /modules/mod_janewspro/tmpl/linear/blog_item.php

now when I removing the red line I highlighted in code, that yellow box will disappear. so all I need now is to change this line with a line which limit output words (of ja-tooltips) to 20 words. can you tell me what should I write. I’m not familiar with php.

# ------------------------------------------------------------------------
# Ja NewsPro
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 All Rights Reserved.
# @license GNU/GPLv3

# ------------------------------------------------------------------------
$cls_sufix = trim($params-&gt;get('blog_theme',''));		
if($cls_sufix) $cls_sufix = '-'.$cls_sufix;
$class = '';
if(JRequest::getInt('subcat', 0)) $class = 'subcontents-'.JRequest::getInt('subcat');

$showcreator			= 	$helper-&gt;get( 'showcreator', 0 );
$showdate 				= 	$helper-&gt;get( 'showdate', 0 );
$maxchars 				= 	intval (trim( $helper-&gt;get( 'maxchars', 200 ) ));
$showreadmore 			= 	intval (trim( $helper-&gt;get( 'showreadmore', 1 ) ));
$showsubcattitle 		= 	trim( $helper-&gt;get( 'showsubcattitle', 1));

$params_new = new JParameter('');
$catid = $secid;
$cooki_name = 'mod'.$moduleid.'_'.$catid;
if(isset($_COOKIE[$cooki_name]) && $_COOKIE[$cooki_name]!=''){
	$cookie_user_setting = $_COOKIE[$cooki_name];
	$arr_values = explode('&', $cookie_user_setting);
		foreach ($arr_values as $row){
			list($k, $value) = explode('=', $row);
				$params_new-&gt;set($k, $value);
$introitems 	= 	intval (trim( $params_new-&gt;get( 'introitems', $helper-&gt;get( 'introitems', 1 ) )));
$linkitems 		= 	intval (trim( $params_new-&gt;get( 'linkitems', $helper-&gt;get( 'linkitems', 0 ) ) ));
$showimage		= 	intval (trim( $params_new-&gt;get( 'showimage', $helper-&gt;get( 'showimage', 1 ) ) ));	
$showtooltip	= 	intval (trim( $helper-&gt;get( 'showtooltip', 1 ) ));
&lt;div class="ja-box column ja-zintheme&lt;?php echo $cls_sufix;?&gt;&lt;?php if (isset($y) && $y==0) echo ' ja-box-first' ?&gt; &lt;?php echo $class?&gt;" style="clear: both;"&gt;
	&lt;div class="ja-box-inner clearfix"&gt;
		foreach ($rows as $i=&gt;$row){	
			if($i&gt;=$introitems) break;												
			&lt;div class="ja-zincontent clearfix"&gt;
				&lt;?php if($showimage) echo $row-&gt;image; ?&gt;
				&lt;h4 class="ja-zintitle"&gt;
					&lt;a href="&lt;?php echo $row-&gt;link;?&gt;" title="&lt;?php echo strip_tags($row-&gt;title);?&gt;"&gt;&lt;?php echo $row-&gt;title;?&gt;&lt;/a&gt;
				&lt;?php if ( $showcreator || $showdate ) : ?&gt;
				&lt;p class="ja-zinmeta"&gt;
					&lt;?php if ($showdate) : ?&gt;
						&lt;span class="createdate"&gt;
							&lt;?php echo $row-&gt;created?&gt;
							&lt;?php if ($showcreator) : ?&gt; &nbsp;|&nbsp; &lt;?php endif; ?&gt;
					&lt;?php endif; ?&gt;
					&lt;?php if ($showcreator) : ?&gt;
						&lt;span class="createby"&gt;&lt;?php echo $row-&gt;creator;?&gt;&lt;/span&gt;						
					&lt;?php endif; ?&gt;
				&lt;?php endif; ?&gt;

				     if($maxchars &gt; strlen($row-&gt;introtext1)) {
				      echo $row-&gt;introtext;
				     } else {
				      echo $row-&gt;introtext1;
				&lt;?php if ($showreadmore) : ?&gt;
				&lt;p class="readmore"&gt;
				&lt;a href="&lt;?php echo $row-&gt;link; ?&gt;" title="&lt;?php echo JText::sprintf('READ MORE...');?&gt;"&gt;
					&lt;span&gt;&lt;?php echo JText::sprintf('READ MORE...');?&gt;&lt;/span&gt;
				&lt;?php endif; ?&gt;
			&lt;?php unset($rows[$i])?&gt;
		&lt;?php }?&gt;
		&lt;?php if($rows){?&gt;
		&lt;div class="ja-zinlinks clearfix"&gt;
			&lt;strong&gt;&lt;?php echo JTEXT::_('MORE:')?&gt;&lt;/strong&gt;			
			&lt;ul class="jazin-links"&gt;
				&lt;?php foreach ($rows as $row){?&gt;									
						&lt;span &lt;?php if($showtooltip){[COLOR="#FF0000"]?&gt;class="editlinktip jahasTip" title="&lt;?php echo trim(strip_tags($row-&gt;title), '"'); ?&gt;::&lt;?php echo htmlspecialchars($row-&gt;image.$row-&gt;introtext)?&gt;"&lt;?php [/COLOR]}?&gt;&gt;
				  			&lt;a href="&lt;?php echo $row-&gt;link; ?&gt;"&gt;
				  				&lt;?php echo $row-&gt;title; ?&gt;
				&lt;?php }?&gt;
		&lt;?php }?&gt;

Thank you for providing code, however PHP does us little good :). We need the raw HTML, aka what hte browser outputs. Could you provide that to us?

thanks man. I found the solution.
It solved

Glad you were able to solve it on your own :). For those who search their issue and find this thread, how did you fix it? What was wrong?