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:
To be honest though I'm not exactly sure why this works. I'm not sure why it uses the <a> tags and I'm pretty sure it's javascript but I don't use an <script> coding in my html and it still works...
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.
Something along the lines of:
View 4 Replies
ADVERTISEMENT
Jul 20, 2005
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
View 2 Replies
View Related
Apr 16, 2011
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?
[Code]...
View 1 Replies
View Related
Jul 18, 2009
<html>
<head>
<script type="text/javascript">
[code]....
View 1 Replies
View Related
Nov 2, 2009
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..
View 1 Replies
View Related
Aug 5, 2009
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
View 8 Replies
View Related
Mar 23, 2011
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.
HTML
Code:
<div>
<h3>Auto Suggest</h3>
<input type="text" size="30" value="" id="inputString" onkeyup="lookup(this.value);" onblur="fill();" />[code]....
View 2 Replies
View Related
Sep 30, 2009
I am new to JavaScript and was wonder how I would go about creating a form to allow the user to enter various words, one at a time. These words are added to an array and displayed in the page using the textarea form element. Each time a new word is entered, it is added to the array, and then the array is sorted in alphabetical order before the words in the array are displayed in the textarea, one per line. I have tried lots and lots of different methods to accomplish this, and I can get it half working when I use the alert function, but I need this to display on the page in a textarea rather than in an alert box, I tried to get it to write to the page using a document.write function, but like I said I am new to JavaScript and unfortunately cant get any of it working.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "[URL]">
<html xmlns="[URL]">
<head>
<title>JavaScript Page One</title>
</head>
<BODY>
<CENTER>
<FORM name="history">
<INPUT name="command" type="text" value="">
<INPUT type="button" value="Add to List" onclick="f_store(document.history.command.value)">
<INPUT name="history" type="button" value="Show List" onclick="f_print()">
</FORM>
<P>
<SCRIPT language="JavaScript">
function MakeArray( n ) {
if( n <= 0 ) {
this.length = 0;
return this;
} .....
View 3 Replies
View Related
May 17, 2010
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...
View 5 Replies
View Related
Apr 28, 2011
I found Google Transliteration, a very good tool to reproduce the sounds of a sentence in a different language.
Reference:
[URL]
It supports approx. 22 languages. how does make it to support German and Swedish too. I cant see these languages there.
View 1 Replies
View Related
Oct 13, 2009
i have this javascript question below,
Code:
var xHRObject = false;
if (window.XMLHttpRequest) {
[code].....
View 1 Replies
View Related
Sep 3, 2009
I am wanting the user to move their mouse over a word and a description should appear. Like this: [URL], move your mouse over copyright symbol, which is down in the right hand corner of the photo. Could someone please tell how to do this? I know this would need JavaScript, but not sure what to search for in a search engine.
View 3 Replies
View Related
Feb 25, 2009
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.
View 1 Replies
View Related
Nov 6, 2011
Using onMouseOver in a link
- I am able to display a file's contents in a frame.
- I can display an image file in an IMG tag But I can't figure out how to combine the two. What I want to do is onMouseOver display the contents of a text or html file in a TD element.
In essence:
<a href="#" onmouseover='document.getElementById('ingred2').text="FileName.htm"'>
<TH id='ingred2'>Display-File-Contents-Here</TH>
View 2 Replies
View Related
Feb 22, 2011
How to show/hide several paragraphs when the user clicks next and then the reverse when the user clicks prev.
View 1 Replies
View Related
Feb 13, 2011
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.
View 2 Replies
View Related
May 12, 2011
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:
<iframe src="http://www.mhgoebel.com" frameborder="0" id="frame" width="320" height="356" scrolling="no">
onmouseover="setScrolling('auto')" onmouseout="setScrolling('no')"
</iframe>
View 1 Replies
View Related
Aug 8, 2010
I have this piece of HTML code:
Code:
<ul>
<li>Cat 1
<div class="actions">Edit | Delete</div>
<ul>
<li>SubCat 1
[Code]...
View 2 Replies
View Related
Feb 9, 2008
I would like to know if I can use javascript to enable users to mouseover a hyperlink so that an image would pop up (just while they're hovering over the hyperlink). I am not asking how to use JS to make an existing image change, as there is no image on the page to start with.
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.
View 11 Replies
View Related
Feb 13, 2011
How can we show or hide a div on mouse over and mouseout. For the example below When we mouse over to the div1, div2 should be shown and div1 should be hide and vice versa.
E.g.:
<html>
<body>
<div id="div1">
div 1 content goes here....
</div>
<div id="2">
div2 content goes here.........
</div>
</body>
</html>.
View 5 Replies
View Related
Mar 4, 2010
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?
View 14 Replies
View Related
Oct 2, 2009
I have a CSS menu that I created using div that current appears using the hover function in the CSS. What I would like to do is incorporate javascript to utilise the effect of fading in when the mouse moves over the 'menu' text and then with a delay fades out when the mouse moves out of the menu area.
View 2 Replies
View Related
Feb 27, 2009
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.
View 5 Replies
View Related
Dec 6, 2010
This is what my code is supposed to do:
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)
This is my html:
<style>
#selectdiv
{
position:absolute;
left:10px;
top:10px;
[Code]...
View 1 Replies
View Related
Nov 9, 2009
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:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es">
<head>
<script type="text/javascript">
[Code]...
View 9 Replies
View Related
May 26, 2009
I am currently studying javascript - talk about a whole new world!!I need a simple code for a web page where the thumb images are lined up and when the mouse moves over the image, a larger size of the image is shown above the smaller images.
I have spent hours on the net trying to find something, but can only find either overly complicated or having to download plugins.
View 2 Replies
View Related