Trium918 Posted August 16, 2007 Share Posted August 16, 2007 The script below works for the shorten part, but what would I have to do in order to show the entire string when the mouse roll over it? Can this be done using PHP? <?php // Article Title $title = $row_articles['title']; $titlelenght = strlen($title); $charlimit = "35"; if ($titlelenght >= $charlimit) { $outputTitle = substr($title,0,$charlimit) . "..."; print $outputTitle; //echo $titlelenght; }else{ print $title; } ?> Quote Link to comment Share on other sites More sharing options...
PyraX Posted August 16, 2007 Share Posted August 16, 2007 The only tip i can give you is that it will be javascript and the full $row_articles['title'] will be part of the code Quote Link to comment Share on other sites More sharing options...
Trium918 Posted August 16, 2007 Author Share Posted August 16, 2007 The only tip i can give you is that it will be javascript and the full $row_articles['title'] will be part of the code I tried to google it but I found no results. Anything else that is useful would be great. Thanks. Quote Link to comment Share on other sites More sharing options...
btherl Posted August 16, 2007 Share Posted August 16, 2007 Overlib can do that Quote Link to comment Share on other sites More sharing options...
Trium918 Posted August 16, 2007 Author Share Posted August 16, 2007 Overlib can do that Ok, I have the Overlib. PHP is embedding into the Javascript the same way that it is embedding into HTML, correc? Quote Link to comment Share on other sites More sharing options...
Trium918 Posted August 16, 2007 Author Share Posted August 16, 2007 I got it! I just used the title attribute inside of the <a></a> tag. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.