Jump to content

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/

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.