473,379 Members | 1,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Change popup background color

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 newWindowDanceGallery(gallerygif) {
galleryWindow = window.open(gallerygif, 'galleryWin','width=500, height=400')
galleryWindow.document.bgColor="#ff0000"
galleryWindow.focus()

but the color does not work????

Can someone help me please
Feb 17 '07 #1
5 2918
drhowarddrfine
7,435 Expert 4TB
Just to clairfy but Java is not javascript. What you are doing is javascript.
Feb 17 '07 #2
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 Expert 4TB
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 Expert 1GB
ok so i used your code and it works fine?
Feb 18 '07 #5
acoder
16,027 Expert Mod 8TB
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
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...
2
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,...
6
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...
1
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...
0
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:...
4
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")...
4
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...
2
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...
1
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...
0
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....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.