XSitePro Website Design Software Message Board

The online forum dedicated to XSitePro users. Get help with website design in general and using this popular and incredibly powerful website software
It is currently Tue May 21, 2013 5:24 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat Feb 11, 2012 11:14 am 
Offline

Joined: Fri Feb 19, 2010 9:52 am
Posts: 8
I have seen some web sites where when the user moves the mouse pointer over a highlighted word or small image, a little window appears containing, say, a picture of the item referred to, or a few words explaining what a word means, etc.

Can Xsitepro do this? Or can some other piece of software be used with Xsitepro to make it do this?

I am not talking about traditional "popups" in the sense of a separate browser window.

Anyone know how to achieve this?


Top
 Profile  
 
PostPosted: Sat Feb 11, 2012 10:18 pm 
Offline
User avatar

Joined: Sat Sep 03, 2005 7:47 pm
Posts: 8114
Location: California
Do a search for tool tip scripts.

There are some over on dynamicdrive.com

Jason

_________________
Image


Top
 Profile  
 
PostPosted: Mon Feb 13, 2012 6:40 am 
Offline
User avatar

Joined: Mon Dec 06, 2010 5:02 pm
Posts: 29
Location: Torquay, England
amherst wrote:
I have seen some web sites where when the user moves the mouse pointer over a highlighted word or small image, a little window appears containing, say, a picture of the item referred to, or a few words explaining what a word means, etc.

Can Xsitepro do this? Or can some other piece of software be used with Xsitepro to make it do this?

I am not talking about traditional "popups" in the sense of a separate browser window.

Anyone know how to achieve this?


This may help:

1. Create two folders on the desktop, the first one named 'css' and the second named 'js'.

2. Into the 'css' folder add the following text file using notepad++ or editplus (any program that will allow for creating/saving a ".css"):

#tooltip{
position:absolute;
border:1px solid #333;
background:#f7f5d1;
padding:2px 5px;
color:#333;
display:none;
}

3. Save this file as tooltip.css and put this in the 'css' folder.

4. Into the 'js' folder add the two javascript files: 'main.js' and 'jquery.js'.

5. Now add the following into Global Scripts --> Head Section:

<!-- tooltip.js -->
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/main.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="css/tooltip.css" />
<!-- /tooltip.js -->

6. For the page where you are going to use the tooltip use the following code via the source tab:

<p>
<a href="http://yourlink.com" class="tooltip" title="Your Tooltip Copy">the link word/words as they appear on the page</a>
</p>

Change the url "yourlink.com" to the url address you want to go to if the tooltip is clicked.

Change the words"Your Tooltip Copy" to the text you want to show when the link is hovered over with the mouse. Don't use too many words here as it looks unweildy.

Insert the words you want to show on the page between the > </a> symbols.

7. To alter how your tooltip appears the background and font colours inside the tooltip can be adjusted via the tooltip.css file.

8. Now open Resource Manager and add the folders you created earlier, plus their contents.

That's it, you should be good to go. PM me and I will email you the js files you need.

Regards,

_________________
JohnB


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group