We are creating a new button like the ones known from addthis/sharethis and would like the same behavior as there popups.We have tried by putting together some different scripts, and the action is about right. We do still have one problem, and that is the position of the popup.If the button is placed at the right site of a website, it floats out of the screen, making scrollbars. Also it don't have same position behavior in Firefox, IE, Opera ...The button can be seen here: http:[url]....
The code related to this problem should bed this:
function move_box(an, box)
{
var cleft = 0;[code]....
If someone would be interested in rewriting the script, we would credit this in our about page.
Im currently working on a webpage and Im having a little trubble with a javascript im using on the site.
The script makes popup boxex come up when I move the cursor over a link and if the cursor is draged outside the link, or the popupbox it will fade away after a little while..
When I Apply the script on a empty homepage, like test.htm with this sctipt only and some test links it works just fine.. but when trying to use it on my webpage at work I get "Error On page, line 112" and that "X" is undefined.. Seems like he cant read out x or y to get the screen possistone.. Code:
Now I want to be able to centre this window to the middle of the screen. I can do this easily enough If i was to write a javascript function say for an html page, however you can't write javascript functions in flash, just command lines like the one above. So how can I centre this window? i've tried:
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 have a small dillemma I'm trying to solve involving javascript and I was curious if anyone here might be able to tell what the issue is. I'm redesigning my portfolio, and I have a page that involves popup windows, which can be seen at www.souledesign.net/final_site3/portfolio_flash.html. When I click on an icon, it pops up a window successfully. However, the height value I have inputted for the window is ignored, and the window automatically sizes itself vertically to the full height of the web browser.
The code that I've placed on the button that pops up the javascript window looks like this:
This should open a simle XHTML document sized to 496x70px, containing a Flash movie that is displayed using swfobject javascript. unfortunately, the window ends up resizing itself to a height that fills up the entire page rather than properly sizing to 70 pixels.
I have 2 monitors from a different size. It is important in my application that I get the screen size of the monitor where the webbrowser is located. When I try to get the screen size (window.screen.height + window.screen.width) only IE gives me always the screen size of the main monitor where my taskbar (windows7) is located, instead of the screen size of the secondary screen where the webbrowser is located.
I have a div that has a negative top margin and a negative right margin. The right margin is because I want to have the div slide onto the page from the right. The top margin is because without it my page height is the height of the visible elements plus the height of the off-screen div.On a button click, I move the div down and then animate it onto the screen from the right. On button click again, I animate the div to the right, off the screen, and then move it up. I also toggle its width & padding so it will appear to grow/shrink as it moves on/off screen. At least that's what I am trying to do. The animation onto the screen looks good, but going off the screen, it appears to happen intantaneously, instead of animatedDoes anyone know how I can fix this?
$(".addPanels").live("click", function(){//now and in the future, show the add panels menu var thisAddPanelsMenu = $(this).parent().prev(".addPanelsMenu");//get the addPanelsMenu if(thisAddPanelsMenu.length) {//if the addPanelsMenu exists
I am trying to dynamically open a popup window but ie8 blocks it with the popup blocker. basically within a ajax fuction I have a confirm button and if the user clicks yes it opens a popup window. now I tried it with a javascript function but it got blocked, so I have tried it by creating a form with a button in it and instead of calling the popup function direct I call document.form.button.click and in the form my button has onclick"popup('<? echo url; ?>')" but this also is detected as a unwarranted popup and is blocked.
now I understand that the popup blocker works when a popup is called without user interaction, but allows popups on say button clicks. how can I get the popup to work
In my application i use window.showmodaldialog() to pop up a window. When i run it in IE pop up blocker wont blocks the window... But when run it in FireFox pop up blocker will blocks the pop up window.. is there any way to open a window with out blocking(avoiding ) by the pop up blocker?
From a parent window, I open two child windows.In the second child, you complete some data, and then it closes the window. I'm trying to figure out how to find and close the first popup window at the same time (as that is used for reference but no action necessary on it).As near as I can tell window.open should let me set a handle that I can then reference later on to close that window (or am I misunderstanding that), but i cannot figure out how to reference that window.
As per the rather long subject, I would like to (well, my boss would like me to...) on a popup have one button to close and another to close but then redirect to another page.
I have created a ticket system where users can submit their problem. After several month of experience it appears that offering a zone to paste a screen shot will be ideal. Is there anyway to acheive this without pasting to a word doc, and upload it?
There must be an apostrophe or some other little javascript nuisance that I'm still including in this script, but whenever I try it out, nothing shows..it is supposed to randomly display some text and a link Code:
I was wondering if it is possible to maximise a screen in javascript.
right now, I use this code:
A HREF="heritage.html" onClick="msgWindow=window.open ('heritage.html','fullWindow','toolbar=no,location =no,directories=no,status= no,menubar=no,scrollbars=yes,resizable=yes,width=8 30,height=630'); return false" onmouseover="window.status='open site in full screen' return true" CLASS=TP>open full screen</A>
, but I was wondering if we can fill the entire screen?
im building a web application in asp.net. i was wondering if there is a way to set the screen size automatically on the clients monitor to 1024*768 when they enter the application and return it to its original size on exiting the application.
I"m looking for a cross-browser (Firefox 1+, IE 6+, Safari whatever+) to calculate the width of the viewable browser area. Note that this is different than the screen width, which would always stay the same value, even if you started resizing your browser.