Those who have used Google notebook may notice that google notebook displays the notes in a small floating window of the browser. I have tried to create a similar floating window, but with no luck. Dojo has a sample floating window, but that floating window has to exist in a browser page, but looks like Google's floating window can exist independently.
I also tried to debug the google notebook javascript code. It has two compressed javascript files. One is more than 300k and the other one is 130k. It is too complicated for me to debug the code.
Anybody has some ideas how to create a similar floating window?
I'm working on a mysql browser / edit-in-place app which presents the user with a floating UI (think lightbox), that contains widgets appropriate for the given field they've clicked on.
Presently, rather than centering the UI element like a lightbox however, I find it best to keep it relative to their mouse, so that they don't have to traverse halfway across the screen with their mouse to interact with the interface if they've clicked something (for instance) on the bottom left.
The problem however should be apparent: if they click something towards the bottom of the screen, we need to adjust the css top/left properties so that the UI remains within the viewable area and doesn't run beyond the viewport, if possible. I've seen this done tons of times with tooltips.
I've thrown some basic awareness together using$(window).height() / width(), but if anyone could point me to a maturealgorithmfor harvesting the appropriate offset.
I'm looking for a cross-browser (IE, Netscape, Mozilla/FireFox, Opera, Safari) javascript that will keep an image (or <div>) in the lower right corner of the browser window whenever part of the web page has been scrolled vertically. I did find a script on the internet that was supposed to fit my needs, but I found it didn't work as advertised. (I included that script below.)
Requirements: - I'm using "Frames" and the frame I want the image/div to appear in is the main content frame that sits against the right and bottom edges of the browser window. So the lower right corner of the browser window is the same as the lower right corner of my frame. - (optional) If the frame content is small enough such that there are no scrollbars or if the page has not been scrolled vertically, then I don't want the image (or <div>) to appear. - the placement of the image/div needs to take into account the width of the scrollbar(s). - my focus is to display a button in this lower right corner that, when clicked, will scroll the page to the top.
I found the following script on another site that claims it would do most of this, cross browser, but I was only able to make it work with IE (and I'm using IE 6.0). When I tried it with Netscape 7.1, Firefox 1.0 (Mozilla 5.0) and Opera 7.54, the button didn't float as the page scrolled. I checked browser settings and javascript is turned on for all the browsers.
Can someone point me to a javascript that will do what I'm looking for, or help me understand why the following script isn't working cross browser? I've worked with javascript and the DOM somewhat, but am not a Master of the subject matter, especially when it comes to cross browser issues.
Thanks, and here are the instructions and script that I mentioned above (that I had founed from another site):
Place the watermark on your page where you want it to appear on non-DHTML browsers (say, the bottom). Then nest it inside a <DIV> tag with the attributes id="waterMark" and style="position:absolute". Code:
I have a welcome message on my site and would like to automatically hide it after several seconds. I can't find anything usable after searching over the internet
at center of page there is a heading "Recently Posted Job" i want that functionality to make for my project i.e. changing of text or heading after a particular interval of time.
I'm not quite sure what this is called (tooltip, dialogue, popup, show/hide) but I've seen it around... I'd like to accomplish the following, as indicated in the attached image.
I want an image to automatically appear upon a user's visit 'pointing' to a specific link on my nav bar.
Ideally, this will load on users visit, then not load if/when they click the [x]...
I would like to automatically resize a window to its content. I was thinking of using an outer table to detect the size of my content, then use window.resizeTo( ).
The problem is I'm not sure how I can determine the size of what I think is referred to as the 'chrome' - the window borders, toolbars, etc.
Is there a way to determine the height and width of the chrome so that I can supply the correct parameters to the resizeTo method?
Is it possible to (via Javascript) refresh a parent page from a child page. I have an app that displays a list of items that the user has authority to change. If the user selects one of the items, another window is opened containing the details of the item. If the user changes any of the details of the item I'd like to refresh the original (list) page.
I have a variable that I obtain from a php code. This variable contains a link such as http://.......with this variable, say $a, once I obtain it with that php code, I want a browser window to open automatically.I dont know javascript.
I have seen in some forums when members respond to the questions posted, a small window popup automatically and closes after few seconds. Can it be done using Javascript?
I currently have a javascript drop down menu. and when the browser window is too small the menu moves for it to be visible. For example, if I hover over a link on the bottom of my site the menu will drop up instead of down.
Well I noticed because of the size of one of my monitors, the menu drops left instead of right and I want to know how to stop it from going left.
My JavaScript Code is:
Code JavaScript: //** AnyLink JS Drop Down Menu v2.0- (c) Dynamic Drive DHTML code library: [url]http://www.dynamicdrive.com[/url] //** Script Download/ instructions page: [url]http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm[/url]
Ok so I have a site that I want to automatically close the window when the focus is lost from the page. For example, if the user clicks off the page to something else on there desktop I want the page to close. So far I have managed to do this but the grids on my page and the scroll bars all trigger the close function when clicked on. Is there anyway to make the scroll bars and drop down boxes not trigger the function?
I am developing an intranet application, in which, in some pages, when the user selects an option, I am using a pop-up window to retrieve the data and displaying it in the main page. The pop-up opens, fetches data, puts in main page and closes itself.
Since the user is not interacting with the pop-up, I would prefer it to be hidden. Can this be done ? I checked a Javascript book, which says the 'alwaysLowered' property can be used to send the pop-up behind other windows but this is a security feature and available only for signed scripts.
My Questions are:
1. Can the pop-up be hidden ? 2. What is a signed script ?
I want to hide address bar for pop up window. I have used following script. In Linux machine its working fine. But in Windows machine address bar still displaying.
This is the code
<script> function openNewWindow(url) { window.open (url,"",'width=620,height=300,scrollbars=yes,menubar=no,location=no'); }
how to rename/hide the title in the popup window. I found the below code from google. this code is working fine. Actualy I don't want to show the url to the user. Below code helps to hide the address bar. But still user can see the url in title bar. If I add the titlebar=no in the var feature then also it is showing the url in titlebar.
function loadMainWindow() { var win = window.self; win.opener = window.self;
I am doing some work, where I want to have a table heading that remains in a fixed position, when the window is scrolled (I will ultimately have a very long table). I have written the code below, which fixes the heading.
I am trying to make it so that each body row of the table gets hidden, when the window is scrolled such that the row passes above the heading row.
To do this I need to somehow detect the distance of each row from the top of the window as the window is scrolled so I can detect when it goes above the fixed heading row. I have tried to do this using offsetTop and scrollTop in the code below, but it doesn't seem to be working (in Safari at least, which I am using for my main testing).
Does anyone know a simple way of detecting the distance to the top of the window so I can use it in my code below, which will work in all browsers?
(I don't really want to use div, and overflow-y:auto to achieve the fixed heading scrollable table, because I don't want to have a sub-section with its own scrollbar. I just want to have the main page scrollbar when the list gets long enough to require it.)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head>
I'd like to know how this site (linked below) does their floating share box on the left side. I notice it starts from a certain position and then it gets pushed down along with the top of the window when the user scrolls down pass that point, sticking to the top. Is there an external js recalculating the top value as the user scrolls down?
I have a website that has an ad box to show the next event. after many hours i got the box to sit above a flash menu but it now floats and when people try to scroll to read the rest of the flyer it is always bellow the screen...