[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


dynamically move an element in Mozilla (Firefox .8) (winxp)

Posted on 2004-04-09
Medium Priority
Last Modified: 2008-02-01
I am trying to move elements in a page in Firefox. I need to know the referencing syntax. Here are the basic parts of my page that  I need to get working.

function shiftThis(){                      
  document.MyID.style.left=100;   // this is the statement that I'm not sure about
}                                               // and is simply triggered by a button on the page

Note that I have position absolute stated in class style...

  .whatever {visibility: visible;  position: absolute}  

This is the element I'm trying to move...

<div id='MyID'' class='whatever'>
<p> Hi There </p>

Question by:steve44
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 25

Accepted Solution

devic earned 1000 total points
ID: 10793717
 .whatever {visibility: visible;  position: absolute}  

function shiftThis()

<div id='MyID'' class='whatever'>
<p> Hi There </p>
<button onclick=shiftThis()>shiftThis</button>

Author Comment

ID: 10793825

This is exactly what i needed    THANKS!

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question