genu Posted February 19, 2006 Share Posted February 19, 2006 HI, I am using PHP to get the articles from a database, and then JavaScript and Css to truncate them to a certain height. When they Click Read More...That article would expand to show the whole thing. Here is what I have so far: [a href=\"http://localhost:8080/youth.php\" target=\"_blank\"]http://localhost:8080/youth.php[/a]I notice that the JavaScript or CSS is messed up in Firefox...why is that, and how do I fix. Furthermore...how can I make it so that the once they click "Read More", it turns in to "Read Less" and when they click "Read Less", it woul again truncate the descripiton.thx in advance Quote Link to comment Share on other sites More sharing options...
AndyB Posted February 19, 2006 Share Posted February 19, 2006 Guess what? You're the only person on the planet that can connect to [a href=\"http://localhost:8080/youth.php\" target=\"_blank\"]http://localhost:8080/youth.php[/a]Personally, I'd use Google and search for a simple javascript 'show/hide' script so that the div containing the news is either visible or not. Why your javascript/CSS doesn't work in some browsers is because your choices of js/CSS don't work in all browsers. Quote Link to comment Share on other sites More sharing options...
genu Posted February 19, 2006 Author Share Posted February 19, 2006 [!--quoteo(post=347391:date=Feb 19 2006, 11:07 AM:name=AndyB)--][div class=\'quotetop\']QUOTE(AndyB @ Feb 19 2006, 11:07 AM) [snapback]347391[/snapback][/div][div class=\'quotemain\'][!--quotec--]Guess what? You're the only person on the planet that can connect to [a href=\"http://localhost:8080/youth.php\" target=\"_blank\"]http://localhost:8080/youth.php[/a]Personally, I'd use Google and search for a simple javascript 'show/hide' script so that the div containing the news is either visible or not. Why your javascript/CSS doesn't work in some browsers is because your choices of js/CSS don't work in all browsers.[/quote]im sorry...try genuchelu.redirectme.net/youth.phpwhat else can I use other than JavaScript, to get the same effect? Quote Link to comment Share on other sites More sharing options...
ChrisDarl Posted February 20, 2006 Share Posted February 20, 2006 Flash? Quote Link to comment Share on other sites More sharing options...
genu Posted February 20, 2006 Author Share Posted February 20, 2006 [!--quoteo(post=347623:date=Feb 20 2006, 10:12 AM:name=ChrisDarl)--][div class=\'quotetop\']QUOTE(ChrisDarl @ Feb 20 2006, 10:12 AM) [snapback]347623[/snapback][/div][div class=\'quotemain\'][!--quotec--]Flash?[/quote]I cant use flash, because the data is extracted from the database via php. Quote Link to comment Share on other sites More sharing options...
ChrisDarl Posted February 20, 2006 Share Posted February 20, 2006 You can still use Flash with a Database and PHP. 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.