Current location: Hot Scripts Forums » Programming Languages » PHP » OnMouseOver problem


OnMouseOver problem

Reply
  #1 (permalink)  
Old 04-12-09, 06:28 AM
RevWaters RevWaters is offline
New Member
 
Join Date: Apr 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question OnMouseOver problem

Hello,
I'm working on updating my church's website. We use PHP for several things on the site. The newest thing we would like to include is a list of upcoming events. I am trying to get it to a point where it will read event information from a file, and then display various items. I have a good portion of it working. What I can't get to work is a OnMouseOver event. Here is what I have so far:

if ($file)
{
while(!feof($file))
{
$date=fgets($file,9);
$title=fgets($file);
$stime=fgets($file,6);
$etime=fgets($file,6);
$info=fgets($file);
echo "<b>". $date ."-". $title;
echo "<onmouseover='return overlib('$title', CAPTION, '$stime - $etime - $info'); onmouseout='nd()'> <br>";

}
}

fclose($file);
The reason we want to do it this way is so our secretary can just go in and edit a text file and then upload it to the server, and it will update the events. This way she will not have to edit the actual HTML/PHP code of the website. Any help would be great.

Thanks,

Rev. Mike Waters
Reply With Quote
  #2 (permalink)  
Old 04-12-09, 09:27 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
You might want to consider a content management system (CMS). It will let you spend more time on the content and less on the technical issues.

Possible solutions:

http://www.concrete5.org/
http://wordpress.com
http://ning.com

Our church site is using eZ publish (http://stkathryns.org), and the content is maintained by several people - no HTML required.

Good luck.
Reply With Quote
  #3 (permalink)  
Old 04-12-09, 12:02 PM
Facundo Facundo is offline
Wannabe Coder
 
Join Date: Apr 2009
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
Can you explain us the exact problem that the OnMouseOver event has?
Reply With Quote
  #4 (permalink)  
Old 04-13-09, 06:39 AM
RevWaters RevWaters is offline
New Member
 
Join Date: Apr 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Facundo View Post
Can you explain us the exact problem that the OnMouseOver event has?
It doesn't do anything when I run the mouse over the text. I'm not sure what I'm missing.
Reply With Quote
  #5 (permalink)  
Old 04-13-09, 07:10 AM
therocket954's Avatar
therocket954 therocket954 is offline
Community Liaison
 
Join Date: Jul 2007
Location: Michigan, USA
Posts: 334
Thanks: 2
Thanked 8 Times in 8 Posts
If you use Firefox, install the Web Developer toolbar extension, it has always done me right. It will provide an error message, the URL to the file that's incorrect, and even a line number in your code.

As well Firebug (another Firefox extension) is great for Javascript debugging.
__________________
--Eric Allison
Twitter: http://www.twitter.com/Eric_Allison
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
onMouseOver / Out problem jonnekke JavaScript 1 08-05-08 08:31 AM
login, roles problem dbrook007 ASP.NET 10 11-10-06 03:42 PM
Form Display Problem neevrap02 Visual Basic 1 09-05-06 05:18 AM
onMouseOver on IE problem fung9381 JavaScript 0 08-17-05 01:57 PM
Asp and Microsoft Access 2002 problem gop373 ASP 2 10-06-04 09:13 AM


All times are GMT -5. The time now is 08:32 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.