Moderators: Derry, Goldie, Harpo
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
LON
Working Mechanic
Posted
Does anyone have (or know of) a floating dictionary (I'm not sure of the technical term but visitors to your webpage can click on a word on your webpage and it appears in the little floating dictionary window thingy and they can get the definition)?

I saw one of these on the Scholastic Site (powered by Wordsmyth)and there's apparently a free one at http://lookwayup.com/free/webmaster.htm
but I can't get the code to work (as usual).

The instructions are:

Paste the code below into every page and frame on your web site where you want this feature activated. Exactly the same line on every page, no need to customize. Put it just before the </HEAD> tag or the </BODY> tag.

<script type="text/javascript" src="/free/lWu.js"></script>

That's all there is to it!

Does anyone know how to do this or of another floating dictionary thingy?
 
Posts: 45 | Registered: November 15, 2008Reply With QuoteEdit or Delete MessageReport This Post
Honorary 'Creative' Mechanic
Picture of Klimt
Posted Hide Post
I simply use this on my website.
 
Posts: 1734 | Location: Vienna, Austria | Registered: July 17, 2006Reply With QuoteEdit or Delete MessageReport This Post
Honorary Mechanic
Picture of American Style Landscaping
Posted Hide Post
If you are asking how to paste the code in, go to page>page editor>Header tab and paste the code in a new header
 
Posts: 297 | Location: Dothan, AL | Registered: August 11, 2008Reply With QuoteEdit or Delete MessageReport This Post
Honorary 'Aussie' Mechanic
Picture of postyr
Posted Hide Post
Maybe I'm missing something here, but wouldn't you also need to upload a file called "IWu.js" to a sub-folder named "free" to your server?
 
Posts: 1154 | Location: Australia | Registered: April 17, 2007Reply With QuoteEdit or Delete MessageReport This Post
Honorary Mechanic
Picture of American Style Landscaping
Posted Hide Post
Good eye Terry. Actually from looking at that site, the file is in their directory, so try: <script type="text/javascript" src=http://lookwayup.com/free/lWu.js"></script> I hope this works.
Dan
 
Posts: 297 | Location: Dothan, AL | Registered: August 11, 2008Reply With QuoteEdit or Delete MessageReport This Post
Guru 'Power' Mechanic
Picture of Bruceee
Posted Hide Post
Postyr, you haven't missed anything. That file is vital to the whole operation. Rather than create a folder called "free" I suggest just copy the IWu.js file to your root folder and modify the code to this:
<script type="text/javascript" src="lWu.js"></script>
 
Posts: 9233 | Location: Wellington, New Zealand | Registered: December 11, 2003Reply With QuoteEdit or Delete MessageReport This Post
LON
Working Mechanic
Posted Hide Post
Thanks for the suggestions. I will try them all tomorrow - past midnight here. How will I get hold of the IWu.js file?
 
Posts: 45 | Registered: November 15, 2008Reply With QuoteEdit or Delete MessageReport This Post
Guru 'Geezer' Mechanic
Picture of larryd
Posted Hide Post
http://lookwayup.com/free/lWu.js then use your browser's File->Save Page As... (or Save) to save the page contents as a file named lWu.js
 
Posts: 5097 | Registered: December 03, 2006Reply With QuoteEdit or Delete MessageReport This Post
LON
Working Mechanic
Posted Hide Post
Thanks for all the tips and help. The AnswerTips looks really good Klimt but my site may be used by kids and it doesn't look like you can control the advertising content.

Thanks everyone for the help on the external LookWayup file. The pop-up dictionary now appears on my test webpage when I preview it but it only appears while loading then promptly disappears. I've checked the specialfx but it's not that.

There's this code in the IWU.js file - is there any way it might be telling the pop-up to close?

if (ie4) Popup=document.all.Popup;
setTimeout('if (ns6)Popup=dL.getElementById(\'Popup\');popIt=ns4?dL.Popup:Popup.style;unPop();if (LWUintro){popIt.visibility=ns4?\'show\':\'visible\';pageOffset()}',300); // call soon
var LWUinc=1

function pageOffset() {
if (!pop && (LWUintro!=0)){
if (!timerID)timerID=setTimeout("if(!pop)unPop();LWUintro=0",LWUintro);
 
Posts: 45 | Registered: November 15, 2008Reply With QuoteEdit or Delete MessageReport This Post
Guru 'Power' Mechanic
Picture of Bruceee
Posted Hide Post
I would not touch the IWU.js file, as the same file works on the Lookwayup site you got it from.

I gave you misleading information above -- a simple link would work for a javascript file you keep on your site.

However, having more closely read the Lookwayup instructions, I see that they want you to link directly to them for the javascript file. So the link suggested by American Style Landscaping is the one to use. This means that you don't need to keep IWU.js on your own site.

It also means that your test page has a better chance of working -- there may be code in IWU.js that prevents it working if stored on your own site.

If that still doesn't work as you want, can you post a link to your test page?
 
Posts: 9233 | Location: Wellington, New Zealand | Registered: December 11, 2003Reply With QuoteEdit or Delete MessageReport This Post
LON
Working Mechanic
Posted Hide Post
Thanks Brucee, you're right - they don't seem to want people storing IWU.js on their website. I emailed them (not expecting a reply) and they've got back quite promptly with an alternative code which seems to work if you put it in the header. In case anyone's interested:

<script type="text/javascript" src="http://lookwayup.com/free/lWu.js">
</script>

Thanks for everyones help.
 
Posts: 45 | Registered: November 15, 2008Reply With QuoteEdit or Delete MessageReport This Post
Honorary 'Aussie' Mechanic
Picture of postyr
Posted Hide Post
One up for Dan.

The script is exactly the same as he suggested.
 
Posts: 1154 | Location: Australia | Registered: April 17, 2007Reply With QuoteEdit or Delete MessageReport This Post
Working Mechanic
Picture of IamRobo
Posted Hide Post
Hey all, long time no comment.

I came across this and thought it was interesting, so tried it out on an old website I did. But when I double click a word it comes up all fine, but it leaves a block colour afterwards. Is this just me?

Here is the example, only on for 24 hours. Any help?

Also, a side note, when the box opens with the deffination in, can I get that box to open any bigger rather then have it have scroll bars?



Thanks!


__________

That guy in the background, quietly taking it all in.
 
Posts: 35 | Location: England. | Registered: April 14, 2008Reply With QuoteEdit or Delete MessageReport This Post
Working Mechanic
Picture of IamRobo
Posted Hide Post
Hey, I just tried the one Roma suggested and that works brilliantly. So, no need to worry! Unless you really want to know what was wrong with the other one, anyway.



Thaaanks!


__________

That guy in the background, quietly taking it all in.
 
Posts: 35 | Location: England. | Registered: April 14, 2008Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 


™ & © 1998 - 2008, Virtual Mechanics Inc. All rights reserved.