Script That Allows User To Mouseover Swedish Words And Have Static Translation Box Show Translation
Aug 12, 2009
I'm working on a personal blog because I'll be visiting Sweden for 4 months. I've found / hacked a script that allows the user to mouseover swedish words and have a static translation box show the translation.
Working site at [url]
The current code I use to, say, translate "sverige" to "sweden" is:
What I would like to do:
Because I'll be using this a lot on my page I'd like to create a function to shorten what I have to type.
I'd like to offer 4 versions of my website (3 foreign languages) this way:
- I want the language to be detected by the browser - I want to be able to choose the language I want by one of 4 radio buttons - I want dynamic real-time refresh of the whole page to the selected language without the page having to refresh - I want it to work on IE, Firebird, Mozilla & Opera
I am a newbie to Java Script. I am trying to convert a Flash Website back to an HTML, JS and PHP website. Naturally they want the site to look the same if possible. In the Flash version they have a contact section which has two choices: Phone or Email Below these choices is an Graphic Image ( by default the image for contacting by phone is showing ) If one clicks the E-mail choice then this default image, then spins around and changes to the E-mail contact image. It's like the Phone and Email Text options are hyperlinks which activate the image rollover. But after the image rollsover, then to actually send and email inquiry you have to click on this new Email Graphic Image. It's kind of a spinning rollover / mouse over affect.
Except after the rollover the image is now static and one can click on the Email Address to affect the Website Inquiry Email Window. Yeah, I know its overkill, why not just click on the link, but it's not my choice, the client wants it that way. He designed it for free on Wix now finds it does not work on iPhone, etc. Is it possible to implement this in Java Script?
I need a java bookmarklet that does a real simple thing. I need to take the current URL (ie, where the user is when they click the bookmarklet) and append it to a static URL and return the text on the resulting page.For example:
The user is at http:[url]....
The user clicks the bookmarklet.
the bookmarklet takes http:[url].... and appends it to http:[url]... HERE where you see the URL HERE text.That PHP script echos a simple line of text (a shortened URL actually).Then I want that result from the outside_create.php file to be displayed in a window back to the user.Is this even possible? Basically I need to know how to append location.href to a static URL and how to get the resulting content from the static URL..
Do you know a function for banning certain words being inputted by the user eg I want to stop a user uploading offensive words and code tags like <script>, <div> etc.. and messing with the site display
what I want to do is have an auto suggest of words as a user types, the code that I have works only once.For example: if you type.. hel, it will suggest hello but once you press space and type hel, again it doesn't suggest hello, I need it to suggest words even after you press space.
I want to create a text box that learn form users entries... I know how to use that but with fixed values I set. I want whenever a user type a word it will be added to a text file (or any other way you know) and if the user typed the word again it will be shown from like drop-down list, like google does...
I would like to create a link where you mouseover and it pops up a powerpoint slide. I know a powerpoint slide would take up the whole window so I would need the powerpoint to pop up near the link and take up half the window and show up next to the link. On mouseout the powerpoint would disapear.
I need to make a simple drop down menu with full-width div's. The hidden div's should show on mouseover, and not close until the trigger and div lose the mouseover, either because the mouse tracks over another menu ink and triggers it's tab, or because the mouse leaves the menu completely. There are lots of menus that function this way -- [URL] -- but I'm trying to avoid hacking through all the css and js files they call to find the pertinent styles and functions.
I have an iFrame on which I wish to display scrollbars ONLY when the mouse is over the iFrame AND the source of the iFrame is larger than the iFrame can display I am using the following code for the iFrame but believe that I need to add some script to make it work:
I have searched for two days and keep finding out how to make a hyperlink change an existing image, or mousing over one image to change another, but none to popup an image, from nothing, only while someone is mousing over a hyperlink.
I have many links on my page. When the user moves over one of the Links, i want to show two or three small icons (perhaps fade in) on the right side of the link so the user could click on it. When the user moves to another link, the previous shown icons should be hidden (perhaps fade out) and the new icons which belong the new link should be shown and made visible. Is this possible?
Once again I have a question I havn't been able to solve through search and experiments :p See, I have a menu consisting of icons. When I hover one of the icons I want a little description of every single menu-item to show in a div at the top of the page.
So, my problem is basicly how to toggle a div on/off when I hover another element? It should be used so that I can specify 4 menu items with different discriptions.
1. create a select list that changes the photo showing, (which I have) 2. create script so that when the user hovers over the image it shows a div 3. when the users mouse is off the image/div shows the coordinates where it last left 4. on mouseout hides the div again (this is the part I'm stuck on)
I'm showing in a field the name of the file the user has chosen. I would like to show the whole name as the title when passing the mouse over the field, in case the name is too long. I swear this was working, but it's not anymore (I'm testing with FF). I don't know how it was working, maybe I used a different combination of quotes or semicolons or I don't know. I can't make it work again. When you pass de mouse over the field it is showing the code instead of the innerHTML referenced:
I have spent hours on the net trying to find something, but can only find either overly complicated or having to download plugins.