Welcome visitor
* Login
* Register
It is currently March 18th, 2019, 3:27 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 3 posts ] 
Author Message
  Preview links
PostPosted: August 11th, 2009, 3:28 am 

Posts: 24
Hi, please help.

Im building a website with some links to other sites. Is there a way so when the user hovers over a link there would be an image showing a preview of that site, and then if the user clicks the preview it opens that page. Is this too complicated to do?

Thanks for any help.


Top
 Profile  
 
  Re: Preview links
PostPosted: August 11th, 2009, 4:34 am 
User avatar

Posts: 61
hth
you will need to have the screenshots for each page though
and some javascript
<script type="text/javascript">
function showPreview(a){
document.getElementById('preview').innerHTML='<a href="'+a+'"><img src="scriptingok.jpg"></a>';}
</script>
<a href="http://www.scriptingok.com" onmouseover="showPreview(href);">ScriptingOk</a>
<div id="preview"></div>


Top
 Profile  
 
  Re: Preview links
PostPosted: August 11th, 2009, 5:19 am 

Posts: 24
Superb, thanks!


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

FORUMS » Client Side » HTML


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:  
cron