473,624 Members | 2,186 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Change popup background color

2 New Member
Hello I am new to java, and I can not get my stuff to work. For my defense i had the worst teacher ever, and I am trying to learn by myself!!!! I am trying to have a pop up menu with a set width height and background color, which would display a picture. This is what I have so far:

function newWindowDanceG allery(galleryg if) {
galleryWindow = window.open(gal lerygif, 'galleryWin','w idth=500, height=400')
galleryWindow.d ocument.bgColor ="#ff0000"
galleryWindow.f ocus()

but the color does not work????

Can someone help me please
Feb 17 '07 #1
5 2925
drhowarddrfine
7,435 Recognized Expert Expert
Just to clairfy but Java is not javascript. What you are doing is javascript.
Feb 17 '07 #2
christele
2 New Member
Just to clairfy but Java is not javascript. What you are doing is javascript.
thank you for the clarification. That one I knew, but we always say java in class for shorter purpose.
Feb 17 '07 #3
drhowarddrfine
7,435 Recognized Expert Expert
You should get them to stop. I am not the only one who will correct you and it will only lead to confusion, including those who will give you a very hard time about it.
Feb 18 '07 #4
iam_clint
1,208 Recognized Expert Top Contributor
ok so i used your code and it works fine?
Feb 18 '07 #5
acoder
16,027 Recognized Expert Moderator MVP
Changed title from "New to java".
Feb 19 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
4363
by: Moon | last post by:
Seems I still haven't got the hang of all those window generating code in Javascript. I've got a page with about 15 photo thumbnails. When you click on a thumbnail a new window pops up which shows the enlarged version of said thumbnail. This works fine on all current browsers I've tested. However, in case I do not close the popup but click on another thumbnail instead, only IE replaces the enlarged pic by the new one, Firebird and Opera...
2
1617
by: Sharon | last post by:
Hi y'all, I'm trying to create a customized context menu using the DHTML Popup object. The HTML that makes up the body of the popup is created in a variable named 'popCode'. Works like a charm, except when I call a function in an onclick it gives an 'object expected' error. Here's the popup function (dopopup) and the function I'm calling (renderData): function dopopup(Value,Field,x,y) { popCode=''; popCode+='<html>\n<head>\n';
6
7078
by: veganeater | last post by:
Hi Everyone, I was wondering if there was a way to pass a variable to a popup window. The purpose is make it so when a user clicks on a specific region/link of the glossary page, a popup opens with the related description. This is done and is obviously not a concern. However, now I would like to make it so the corresponding row becomes highlighted (changes background colour via DOM). I imagine it can be done, but I'm at a loss for...
1
1348
by: Marc | last post by:
Hello, I have a popup form I am trying to "make clever" so it could behave accordingly to which report is opened in the background. Do you know how this popup form can retrieve the name of the (open) report in the background ? Have you some code doing this?
0
2005
by: GV | last post by:
Hi all, New to developing in VS 2005 ASP 2.0 Trying to have a easy pop calender for a button on a web page. I keep getting a error message in IE6 that says: Line 69 Char 3 Error: 'this.container' is null or not an object
4
6810
by: jobs | last post by:
the javascript: function ShowTooltip(L1in) { document.getElementById("L1").innerText=L1in; y = event.clientY + document.documentElement.scrollTop; var Popup= document.getElementById("Popup") Popup.style.display="block"; Popup.style.position="absolute"; Popup.style.left = 220;
4
2168
by: ksbjr | last post by:
I have a need to arrange the relative depth of several non-modal popup forms. Specifically, I need to make sure one particular form is always at the back of the others. That is, if a user happens to click on the "background" form (which would normally bring that form to the front), I want to execute code that would immediately send that form to the "back-most" position. I believe that, in general, in working with layered windows in any...
2
3070
by: thuythu | last post by:
Please help me.... I used and Javascript to view the data. But when i click button open a popup windows, then select data and click save button. The popup close and return the main page, but the textbox value in the main page is undefined ---------------------------------------- here are code main page: ------------------------------------------- <script language="JavaScript"> var thedata; var newwin; var thenumber; function...
1
3166
by: vp.softverm | last post by:
hi all . Am facing problem with the date picker. when i click on date picker in a popup window. the date table is opened in the middle of the pop up window. and it is unable to scroll with the pop up window .
0
5125
by: furqanms | last post by:
I have a little problem in a XAML application. When I use a popup in a WPF application, I am not able to get rid of the popup from the view even if I do Alt-Tab to move focus to other applications. Even I have set stayopen=false Following is the code which I have done. <!-- Middle Product List --> <GroupBox Grid.Column="1" Grid.Row="2">
0
8173
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8679
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8335
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8475
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5563
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2606
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1482
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.