Jump to content

php include to be loaded on onmouseover


tommybfisher

Recommended Posts

Hi,

 

I want to be able to load a php include on a page when a link is rolled over, then remove it when rolled away. However, the code I am using does not do anything. Is this something that can be achieved by this method?

<p><a href="" onmouseout="index.php?page=services" onmouseover="<?php include("includes/services.bespoke.php"); ?>">Bespoke database design</a></p>

Link to comment
https://forums.phpfreaks.com/topic/240930-php-include-to-be-loaded-on-onmouseover/
Share on other sites

Well I was aware of the server/client differences, however, I thought that as you can get php includes to load via a click of a mouse, I wanted to do the same via a rollover.

I want to have a block of text displayed when the user rolls over each link in turn, the text changing for each link.

I can see I am going about this the wrong way. Any ideas on what form the solution should be?

Many thanks

Well I was aware of the server/client differences, however, I thought that as you can get php includes to load via a click of a mouse, I wanted to do the same via a rollover.

I want to have a block of text displayed when the user rolls over each link in turn, the text changing for each link.

I can see I am going about this the wrong way. Any ideas on what form the solution should be?

Many thanks

 

 

You could look into using JavaScript to do what you want. I don't have any tutorial links handy, but you could try Google. Maybe search for "javascript show content onmouseover".

You will get a lot of hits if you search for javascript tooltip.  I recommend jquery based addons like http://craigsworks.com/projects/qtip2/  Check the demos and I'm sure you'll be very impressed at the capabilities and variety of different ways you can use it.  Here's a whole list of similar packages to check out. http://www.webdesignbooth.com/15-jquery-plugins-to-create-an-user-friendly-tooltip/

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.