im getting used to using .js still and I am trying to figure out how to create a button to move a selected field within a box of fields to the top, instead of just moving it one-by-one to the top. Here is what I currently have that moves the selected just up one. Can someone expand on this and make it so it will move to the top instead of just one? :thumbsup:
I want to create a div with flash that will display on the center position of the screen, after playing the flash it will move to a fixed location of the page. How can i do the moving div with slow motion movement. I have tried many times but failed.
I have an iframe somewhere on my page. Now on click of a link, I would like to show it in a different location on the same page, BUT I don't want it to reload again. I've tried this simple method but it doesn't do it because the iframe reloads in its new location.
I am trying to include Dock MAC style Menu in my page which is floating.Here I am facing a problem is, when we hover on menu icon, without scrolling page at bottom, the menu iconsare not getting bigger in size, as it should be.And when you reached at bottom, moving scrollbar down, those icon gets bigger when we hoverI have placed the script just before the end of body tag. I also tried placing the code in starting of body tag, then the reverse thing happen. The icon gets bigger without moving scrollbar down and when we move to bottom, or scroll, the effects lost.
A page I have shows a different background colour depending on the hash portion of the url as it is first loaded. For example a link to mysite/mypage#0000FF would result in a page with a blue background. But another link, this one to mysite/mypage#FF0000, would not give me a red background if directed to the window where mypage#0000FF was loaded just one moment ago. This is normally to be expected, because the browser thinks same page, no load event, basta.
If I use the search portion, for obvious reasons, that is treated a new page load, even when it is from the cache, but I need the hash here. So how do I detect in mypage the moment when the hash string is changed by a user click event on another page in another window, perhaps even from another domain?
I have a site with dynamic pages, where content is fetched via a hidden iframe client/server. I'd like to be able to allow people to bookmark the 'state' of the page, by generating a URL depending on current content. That URL would ideally be visible on the location field of the browser, and bookmarkable.
Is it possible to notice a change of window.location.hash without polling?
I'm working on a Ajax-platform (yes, inventing the wheel again) and have finished almost everything except the support for back/forward-buttons. The track I'm working on is "hidden frames" to keep state in window.location.hash. I've seen some solutions along this way that includes polling window.location for a change... which doesn't comply with my otherwise strict event-driven design...
I was wondering if it's possible to write a script that would check a MySQL database table every 5 seconds for the word "closed." If it finds the word in the table, then it would redirect somehow to another page. how to do it without using a meta refresh?
I'm attempting to implement some deep-linking in my simple AJAX application by setting location.hash, and I've run into two problems:
1) Sometimes setting location.hash seems to send the window on both IE and FF to scroll to the top of the page. I do not want any scrolling to occur. The location.hash change happens in a function which is triggered in an onclick event.
2) Changing location.hash creates a history entry on FF (not on IE)... that's pretty cool for FF, but in this case I do not want a history entry created. How can this be avoided?
I found an example which seems to have avoided both these problems, but cannot decipher the pertinent code: [URL]
I am trying to create an Image menu for a site I'm working on that is rather simple in essence. When the user hovers over a button I have the menu will move left or right depending. I have not got a great deal into it yet as I have become stuck, as I'm new I figured it would be easier to troubleshoot if I build up the program bit by bit.
With the following code I can change the mouse pointer. However, if you click in Mozilla (with IE it works perfect) on 'Show hourglass' the mouse pointer changes only if you move the mouse at least on pixel.
I have webcams, and I want to display the images (jpg) from the cameras on a webpage, refreshed continuously.
For a smooth transition I found a script that utilises double buffering. This works nice, but it is rather complex. I need to change it because it is made to display one camera, but I want more cameras on one page. With every change I make the refresh stops.
Does someone have an example (or a pointer) how to make such a script/page (simple)?