Help with array of Images - is it possible?
Hi, i need to do this thing with tiles in my game such like this:
Image tile[] = new Image[600]
//building map:
for (Y...){
for(X...){
if(tiles[tilenum].equals(null)){
tile = Image.createImage("/"+tileset+"/Tile" + tilenum + ".gif");
tiles[tilenum] = tile;
}else{
tile = tiles[tilenum];
it doesn't work, because Image object has no constructor.. I don't know how to solve it. Can you help me?
Edited by: __LB__javuje on Oct 29, 2008 11:58 AM
- it isn't the problem, *.gif works perfectly. But thanks, your note is helpful, i'll redraw images to png:).
To Daryll.Burke - I think, that my style of writing on this forum wasn't the main problem. If you want to help me, please focus to problem itself and not on details ;). I have rewritten everything, hope that it will be more readable for you.
edit.: I have read my note from yesterday second time, and i think, i wouldn't understand it too, so sorry, man;)
Main problem (or definition of "doesn't work, as you said) is, that every time i try to compare *tile[tilenum]* (where tilenum is from interval <0;600) ) with *null* object, NullPointerException is thrown.
{code}Image tile[] = new Image[600]
//building map:
void tileBuild(...){
for (Y...){
for(X...){
try{
if(tiles[tilenum].equals(null)){
tile = Image.createImage("/"tileset"/Tile" + tilenum + ".gif");
tiles[tilenum] = tile;
}else{
tile = tiles[tilenum];
}catch(Exception ex){
}{code}
I realy don't know how to solve it..
Edited by: __LB__javuje on Oct 30, 2008 6:39 AM
Similar Messages
-
Help with Dreamweaver flash image viewer
Hi all
Would like some help with Dreamweavers Flash image viewer.
Everything is working properly except when i try to link a picture, and have set the imagelinkTarget value to _blank the link always navigates away from my site and does not open in a new window.
I have tried all the values for the imageLinkTarget and nothing works..
Here is my code
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0, 28,0','width','190','height','190','src','images/ad1','quality','high','flashvar s','flashlet={imageLinkTarget:\'_blank\',captionFont:\'Verdana\',titleFont:\'Verdana\',sh owCo ntrols:false,frameShow:false,slideDelay:5,captionSize:14,captionColor:#000000,ti tleSize:10,transitionsType:\'Fade\',titleColor:#333333,slideAutoPlay:true,imageU RLs:[\'images/image1.jpg\',\'images/image2.jpg\',\'images/image3.jpg\',\'images/ image4.jpg\'],slideLoop:true,frameThickness:2,imageLinks:[\'http://www.bowlsaustralia.com.au\',\'http://www.smh.com.au\'],frameColor:#333333,bgColor:# FF9966,imageCaptions:[\'Bowls Australia\',\'Sydney Morning Herald\']}','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFl ash','flash_component','ImageViewer.swc','movie','images/ad1' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0, 28,0" width="190" height="190">
<param name="flash_component" value="ImageViewer.swc" />
<param name="movie" value="images/ad1.swf" />
<param name="quality" value="high" />
<param name="FlashVars" value="flashlet={imageLinkTarget:'_blank',captionFont:'Verdana',titleFont:'Verd ana',showControls:false,frameShow:false,slideDelay:5,captionSize:14,captionColor :#000000,titleSize:10,transitionsType:'Fade',titleColor:#333333,slideAutoPlay:tr ue,imageURLs:['images/image1.jpg','images/image2.jpg','images/image3.jpg','image s/image4.jpg'],slideLoop:true,frameThickness:2,imageLinks:['http://www.bowlsaustralia.com.au','http://www.smh.com.au'],frameColor:#333333,bgColor:#FF9 966,imageCaptions:['Bowls Australia','Sydney Morning Herald']}" />
<embed src="images/ad1.swf" quality="high" flashvars="flashlet={imageLinkTarget:'_blank',captionFont:'Verdana',titleFont:' Verdana',showControls:false,frameShow:false,slideDelay:5,captionSize:14,captionC olor:#000000,titleSize:10,transitionsType:'Fade',titleColor:#333333,slideAutoPla y:true,imageURLs:['images/image1.jpg','images/image2.jpg','images/image3.jpg','i mages/image4.jpg'],slideLoop:true,frameThickness:2,imageLinks:['http://www.bowlsaustralia.com.au','http://www.smh.com.au'],frameColor:#333333,bgColor:#FF9 966,imageCaptions:['Bowls Australia','Sydney Morning Herald']}" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFl ash" type="application/x-shockwave-flash" width="190" height="190"> </embed>
</object>
</noscript>
any help would be greatly appericated
KenI just googled and found lots of folks with the same problem. One fellow wrote this as a soluton:
"All you have to do is
remove the values from the imageLinks in the flash element. That
should fix it."
Does it?
E. Michael Brandt
www.divahtml.com
www.divahtml.com/products/scripts_dreamweaver_extensions.php
Standards-compliant scripts and Dreamweaver Extensions
www.valleywebdesigns.com/vwd_Vdw.asp
JustSo PictureWindow
JustSo PhotoAlbum, et alia -
Null pointer exception- with array of images
Hi , i am having some problems with my program. I am trying to create an array of images( which i dont really know how to do) and i keep getting this error
Exception in thread "main" java.lang.NullPointerException
at DiceRoller.<init>(DiceRoller.java:35)
at RollDice.main(RollDice.java:19)
Here is my code, any help would be appreciated, i have switched things around and i still can't figure out what is wrong
* @(#)RollDice.java
* RollDice application
* @author
* @version 1.00 2009/3/23
import java.util.Scanner;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class RollDice {
public static void main(String[] args) {
DiceRoller diceroller = new DiceRoller();
//Default Close operations
diceroller.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
//Size
diceroller.setSize( 121, 121 ); // set frame size
//Dont want anyone to mess with it
diceroller.setResizable(false); // Cant resize
diceroller.setVisible( true ); // display frame
* Dice.java
//Main dice Class
import java.util.Random;
import java.io.*;
public class Dice
public Random r = new Random();
private int sides;
private int rolls;
public int x;
public Dice()
Roll method
public int roll()
x=0;
x = (r.nextInt(6)+1);
return x;
/** DiceRoller.java
* Roll, print, Gui
import javax.swing.*;
public class DiceRoller extends JFrame
private ImageIcon[] image = null ;
public String[] images = { "empty", "dice1.jpg",
"dice2.jpg", "dice3.jpg", "dice4.jpg",
"dice5.jpg", "dice6.jpg" };
public Dice die;
private int rollVal;
public int rollNum;
private JLabel j1;
public DiceRoller(){
die =new Dice();
int rollVal = 0;
rollVal = die.roll();
//Images
image = new ImageIcon[images.length];
for(int i = 0; i < images.length; i++){
image[i] = new ImageIcon(images);
}//end for
// setImage(rollVal);
if (image!=null){
j1.setIcon(image[rollVal]);
System.out.println("Roll = "+die.roll());max_wallace wrote:
Do you think you could please elaborate on your answer, and what does borked mean?One of my favourite words that; [b0rked|http://www.urbandictionary.com/define.php?term=b0rked] / borked -
Need Help with Array.sort and compare
Hi
I have a big problem, i try to make a java class, where i can open a file and add new words, and to sort them in a right order
Ok everthing works fine, but i get a problem with lower and upper cases.
So i need a comparator, i tried everything but i just dont understand it.
How do i use this with Array.sort??
I hope someone can help meOkay, you want to ignore case when sorting.
There are two possibilities: Truly ignore case, so that any of the following are possible, and which one you'll actually get is undefined, and may vary depending on, say, which order the words are entered in the first place:
English english German german
english English german German
English english german German
english English German german
The second possibility is that you do consider case, but it's of lower priority--it's only considered if the letters are the same. This allows only the first two orderings above.
Either way, you need to write a comparator, and call an Arrays.sort method that takes both array and Comparator.
The first situation is simpler. Just get an all upper or lower case copy of the strings, and then compare thosepublic int compare(Object o1, Object o2) {
String s1 = ((String)o1).toUpper();
String s2 = ((String)o1).toUpper();
return s1.compareTo(s2);
} You'll need to add your own null check if you need one.
For the second way, your comparator will need to iterate over each pair of characters. If the characters are equal, ignoring case, then you compare them based on case. You pick whether upper is greater or less than lower.
Of course, the need to do this assumes that such a method doesn't alrady exist. I don't know of one, but I haven't looked. -
Help with exporting and image size or boundaries?
I am trying to slide the cat into the scene a little at a time foir an animation project I am working on. However, when I export the image the back ground of the image expands with a checkered back ground( showing here in white) and shows the whole cat.
How do I just show a little of the cat on the image at a time when exporting. I am trying to give the impression that the cat is walking into the room. I do not want to have to cut the cat up.
I would be thankful for any suggestions.Provide the name of the program you are using so a Moderator may move this message to the correct program forum
This Cloud forum is not about help with program problems... a program would be Photoshop or Lighroom or Muse or ??? -
Hey guys, I'm a beginner programmer and I'm having a bit of a tough time with arrays. I could really use some help!
What I'm trying to do is roll one die and then record the rolls.
Here is my sample I/O:
How many times should I roll a die?
-> 8
rolling 8 times
2, 1, 5, 6, 2, 3, 6, 5
number of 1's: 1
number of 2's: 2
and so on....
Here is my incomplete code at this moment:
//CountDieFaces.java
import java.util.Scanner;
import java.io.*;
import library.Gamble;
public class CountDieFaces
//prompt for and read in: number of times user wants to roll one die
//simulate rolling a die that many times, counting how many times each face 1 thru 6 comes up
//print out: each roll
//AND the total number of times each face occured and the percentage of the time each face occured.
Scanner scan = new Scanner(System.in);
int[] faceCount= {0,0,0,0,0,0,0};
int dice;
System.out.println("How many times would you like to roll the die?");
int dieCount = scan.nextInt();
int dieRoll = Gamble.rollDie(); // Main calling class method
int count = 1;
while(count < dieCount)
System.out.println(faceCount[count]);
count++;
}Here is the gamble library:
//Gamble.java
package library;
public class Gamble
// returns 1, 2, 3, 4, 5, or 6
public static int rollDie()
int dieRoll = (int)(Math.random()*6)+1;
return dieRoll;
}and here are the errors I have so far:
----jGRASP exec: javac -g CountDieFaces.java
CountDieFaces.java:19: <identifier> expected
System.out.println("How many times would you like to roll the die?");
^
CountDieFaces.java:19: illegal start of type
System.out.println("How many times would you like to roll the die?");
^
CountDieFaces.java:25: illegal start of type
while(count < dieCount)
^
CountDieFaces.java:25: > expected
while(count < dieCount)
^
CountDieFaces.java:25: ')' expected
while(count < dieCount)
^
CountDieFaces.java:26: ';' expected
^
CountDieFaces.java:27: illegal start of type
System.out.println(faceCount[count]);
^
CountDieFaces.java:27: ';' expected
System.out.println(faceCount[count]);
^
CountDieFaces.java:27: invalid method declaration; return type required
System.out.println(faceCount[count]);
^
CountDieFaces.java:27: ']' expected
System.out.println(faceCount[count]);
^
CountDieFaces.java:27: ')' expected
System.out.println(faceCount[count]);
I'm really confused with how a the gamble library gets put into the array, so any help is appreciated! Also if anyone could explain the errors to me, I would really appreciate it.
thanks in advance,
wootens
Edited by: Wootens on Oct 18, 2010 8:55 PMD'oh!
Thanks you guys, fixed that. Although I'm having trouble with storing the die roll in the array. Any suggestions?
java.io.*;
public class CountDieFaces
//prompt for and read in: number of times user wants to roll one die
//simulate rolling a die that many times, counting how many times each face 1 thru 6 comes up
//print out: each roll
//AND the total number of times each face occured and the percentage of the time each face occured.
public static void main(String[] args)
Scanner scan = new Scanner(System.in);
int[] faceCount= {0,0,0,0,0,0};
int dice;
System.out.println("How many times would you like to roll the die?");
int dieCount = scan.nextInt();
int dieRoll = rollDie(); // Main calling class method
int count = 0;
while(count < dieCount)
System.out.println(faceCount[dieRoll]);
count++;
public static int rollDie()
int dieRoll = (int)(Math.random()*6)+1;
return dieRoll;
}Wootens -
hi,
i need some help with this piece of code. wat would it output to the screen?
int [] theArray = { 1,2,3,4,5};
for (int i = 1; i < 5; i++)
System.out.print(theArray * i + "; ");
would it output 1 * 1;
2 * 2;...
thanx
devinOk...
1] Your index into the array is off by 1 - remember that array indexing starts from 0.
2] You cannot multiply an array object. The contents? fine , go ahead but NOT the array
so your output should be something like:
operator * cannot be applied to int[] :d
try
int[] theArray = {0,1,2,3,4,5};
for(int i = 1;i<6;i++)
System.out.print(theArray*i+";");
giving you an output of 1;4;9;16;n...
if you were looking for the output stated change
System.out.print(theArray*i+";");
to
System.out.print(theArray[i]+"*"+i+";");done... -
Help with creating thumbnail images
Hi there
I need some help with a webpage that displays images.
I am capturing an internal xml file ..and want to display:
An Image or images with a width of 130 px and height of 130
px
My problem is that when our users upload the pictures to the
website ..they are not resized ..and they would not know how to use
a program to do this.
Is there a code or way to take the uploaded picture file and
reduce it to a size of 130 x 130 in the existing page?
It currently is displaying the full size image(s) which are
take up 2 screens.
thanks for your time ..Rob> Is there a code or way to take the uploaded picture file
and reduce it to
> a
> size of 130 x 130 in the existing page?
In the HTML you can just give it a width and height of those
values.
However, the full image is still loaded by the browser, so if
the image is
large, it's still going to be a bandwidth hog.
Ideally, you'd resize on the server at time of upload. This
can be done with
various components depending on the particular back-end
server/scripting
language.
-Darrel -
Need Help With Waveform-driven Image Effects
Hi,
I've been working on a full-dome 3D animation for a couple of years now and I'm looking for someone to help with a custom plug-in for After Effects, Photoshop and/or Combustion. I need to be able to drive filters and effects like Brush Strokes and 'sketchy' noise with the waveform from an audio file. I've been using a very poor mans workflow in which I've mapped the waveform by breaking it up into vertical ranges of varying intensities and then applying respective levels of the effects and filters to the sequential images based on where they fall in the waveform ranges. So for the test Ive done, I've been literally applying Photoshop actions to very small packets of still images from rendered sequences, and it has been dizzyingly time-consuming. Ideally I would want to be able to do this dynamically with a motion graphics package, but really I'm looking for as much help as I can get.
This project began as my master's thesis and I'm working on it during the free time I have between teaching and freelance work; I don't have much money but I am willing to pay for help with this goal. There is still a lot of 3D work that I still need to do and the rendering process will be slow, so this wouldn't be a job with strict or tight deadlines. The final images will be very large (3200x3200) and with the growth in the full-dome market, these sizes could easily increase. If anyone is interested or could help me with this endeavor in any way, please respond to [email protected] Thank in advance to anyone who reads this.
MaxSee the SDK_Backwards sample to see how to acquire audio data from a layer. This is the same access method used by AE's own waveform drawing plug-ins. Feel free to contact me directly with any questions.
-
I really need some help with the following two methods:
- A method fillArray() that accepts an integer array as a parameter and fills the array with random integers. I am encouraged to use Math.random()
- A method printArray() that accepts an integer array as a parameter and outputs every element of the array to the standard output device. I am encouraged to use print instead of println in order to save paper.
Thanks so much for your help.public class Test {
public static void main (String[] args){
int[] intArray = new int[20];
fillArray(intArray);
printArray(intArray);
public static void fillArray (int[] intArray){
for (int i = 0; i < intArray.length; i++) {
intArray[i] = (int) (Math.random()*1000);
public static void printArray (int[] intArray){
for (int i = 0; i < intArray.length; i++) {
int i1 = intArray;
System.out.print(i1+",");
System.out.println(""); -
Help with CS4 tabbed image mode?
How does one drag a layer from one image to another in tabbed mode?
I'm forcing myself to work with the tabbed image interface as I assume someone thought this new feature was a good idea.
I often drag or shift+drag layers from one image to another, whether it be adjustments or image elements that need to be placed (in register) as a layer in another open image.
But when I use the tabbed interface mode any attempt to drag a layer from one tab to another does not work.
What am I missing???
Thanks
RussellYeah I noticed the same limitation.. they making floating document mode extra ****(UI interface that doesn't adhere to System OS visual style, documents that no longer move with the main PS UI, like when you adjust the mainframe size or move the window floating docs would get moved and stay within the UI, unless you dragged and floating doc outside the main ui frame, which was good, but now it seems floating docs always live outside the mainframe and appear above docked although open panel UIs.. not to mention the new theme looks like complete and utter dogshit.. but oh well.. CS5 might get some more work.. maybe they'll bring back the pallete well.. ******* adobe noobs.
I too liked to drag & drop of layer objects onto another document its common thing I do when working in photoshop.. I just can't believe how lame Adobe are that they couldn't allow this functionality seeing as a tabbed UI is the default setup now..
seems like the only way around it is to use the now **** floating document mode... or use one of the splitview modes.. course those are crap, but at least you can D&D layer objects, and then switch back the single doc tab.
lets not get into the flakey **** opengl support and functionality. -
Need Help with Arrays/Text
I'm trying to create a flash program that uses it's own code to send and create images. Each square has a colour and that colour gets added into the array. A black, then grey, then white is:
filecode = ["Bl", "Gr", "Wh"];
That works fine, but when I try to paste it into an Input text box it will only fill in the first part of the array.
filecode = ["Bl,Gr,Wh"];
So the program has NO idea what I want.
The only ways I can think of fixing this is by putting in 402 text boxes to suit every box...But every one of them needs a Variable Name.
Or by sending the information straight into the array. But this way you are just looking at what you just drew, and that is not at ALL practical.
Helping me with this headache will be greatly apprectiated.
FlashDrive100.If you can explain the first part of your posting it might become a little clearer what you are trying to do and what isn't working... particularly this...
" when I try to paste it into an Input text box it will only fill in the first part of the array."
I can't speak for anyone else, but at this point, I share your file's problem... not knowing what you want. -
Help with adding a Image in post
Hello everyone,
I need some help solving a problem I have come across. I am a student and I managed to pickup a free-lancing gig editing a interview video for an author. The interview was shot in front of a red curtain backdrop. During the 2 shot of the author and his guest, he wants me to insert an image of his book cover. So I inserted the image however he is quite the hand-talker and at times his hands and his guests arm disappear behind the book image. Being an amateur/student I have not completely learned everything and I dont know how I would go about placing in the image to allow his hands and arms to appear in front of the image rather than disappear behind them. He said he knows someone who uses vegas and said its possible to place the image in a different layer? I am not aware of anything like that for FCP. If this is possible to do can someone point me to a tutorial or even give me instructions on how to accomplish this?A RED curtain? Wow, they really didn't want to make this easy, did they. There is a lot to making a good difference matte, it's no easy task. My suggestion is, get a book on compositing, watch Lynda.com tutorials, do whatever you have to to learn how to do it right, and then charge a lot of money for it. My view on people hiring students to do this kind of work is that they figure they can get you while you're green and don't know what the job is worth. They can't afford a professional who charges accordingly.
Kudos to you for getting the gig, but don't let them get away with having you do a ton of work for peanuts, or even worse, for free. -
Help with saving my image as text
Hi,
I have to submit my Java project tomorrow and as part of it we must build a density map and save the image as a text file. I have the programme working fine however I can't seem to get the image to save properly as a text file.
Basically I have to read in a raster 300 by 300 text file filled with 0 values and one 255 which is where a bomb explodes. I get the x and y positions of this after turning it into a 2d array, then move a number of bacteria particles around and then build a density map which in a 1d int array.
I now want to save my new image that shows where the particles landed in a SaveMapMenuListnr class and I tried to use a previous practical's SaveGreyMenuListnr (which converted an image to greyscale when it saved it) class to help me with this but now I am in a mess with it as you can see from the below code! All i want to do is save what I have on the screen into a text file and hopefully retain the image on the screen as it is but I have no idea whether to use the 2d array or 1d array and whether the code I have (and which parts of it) is of any use.
Please see below code, thanks.
// Declares a new class called SaveMapMenuListnr and implements ActionListener
public class SaveMapMenuListnr implements ActionListener {
// Declares a global integer variable to store the compressedInt values
int compressedInt;
// Makes an object of ButList and sets it to null
ButList arrayValues = null;
// Creates a private object of DisplayPanel and sets it to null
private DisplayPanel panel = null;
// Declares a new instance of SaveMapMenuListnr and passes in the DisplayPanel and ButList objects
public SaveMapMenuListnr (DisplayPanel pn, ButList bl) {
panel = pn;
arrayValues = bl;
} // End of instance
// This method is invoked to read in an image when the Action Event occurs
public void actionPerformed (ActionEvent ae) {
// These methods get copies of the 2D and 1D int arrays from the arrayValues object of the ButList class
int [][] gotDensity = arrayValues.getDensity();
int [] gotOneDintArray = arrayValues.getOneDintArray();
// Builds a file dialog and shows it on the screen
FileDialog saveDialog = new FileDialog(new Frame(), "Save file", FileDialog.SAVE);
saveDialog.setVisible(true);
// Sets the save file equal to the chosen directory and the open file
File file = new File(saveDialog.getDirectory() + saveDialog.getFile());
// Creates a null object of FileWriter
FileWriter fileWriter = null;
// Creates a new bombMap image
Image bombMap = null;
// Sets bombMap equal to the image on display in the panel
bombMap = panel.getDisplayImage();
// Gets the width and height of the image
int width = bombMap.getWidth(panel);
int height = bombMap.getHeight(panel);
try {
fileWriter = new FileWriter(file);
for (int i = 0; i < 300; i++) {
Color color = new Color(gotOneDintArray);
int red = color.getRed();
int green = color.getGreen();
int blue = color.getBlue();
double temp = 0.56 * (double)green + 0.33 *(double) red + 0.11 *(double) blue;
color = new Color((int)temp,(int)temp,(int)temp);
int compressedInt = color.getRGB();
String grey = String.valueOf (temp);
fileWriter.write(grey + " ");
gotOneDintArray[i] = compressedInt;
fileWriter.close();
catch(IOException f) {
f.printStackTrace();
bombMap = panel.getToolkit().
createImage(new MemoryImageSource(width, height, gotOneDintArray, 0, width));
// This sets "bombMap" as the DisplayImage and instructs the paint method in the Image Panel class file to repaint
panel.setDisplayImage(bombMap);
panel.repaint();
} // End of ActionPerformed method
} // End of classI don't understand the question. What kind of format do you expect the text file to have?
-
Help with placement of images and texts
Hi there everyone, first time in this forum.
Im creating a website for the first time in dreamweaver after using other programmes and have so far created a banner and nav bar across the left hand side. I am unsure on how i am meant to add any content into the actual centre of my page as there is no box there to write in or add pictures and when i create a image or div or table they all just hug the top of my page and refuse to go next to the navigation bar like i need to it! im sure it is simple but i am finding it so much harder to use than any other programme.
Im trying to do a list of pictures and descriptions for my mums business.
any help would be greatly appreciated.
thanks!
Harrythis is my code by the way, i made it as a template and then saved it as a html.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<link href="../twoColFixLtHdr.css" rel="stylesheet" type="text/css" />
<link href="../Spry-UI-1.7/css/Menu/basic/SpryMenuBasic.css" rel="stylesheet" type="text/css" />
<script src="../Spry-UI-1.7/includes/SpryDOMUtils.js" type="text/javascript"></script>
<script src="../Spry-UI-1.7/includes/SpryDOMEffects.js" type="text/javascript"></script>
<script src="../Spry-UI-1.7/includes/SpryWidget.js" type="text/javascript"></script>
<script src="../Spry-UI-1.7/includes/SpryMenu.js" type="text/javascript"></script>
<script src="../Spry-UI-1.7/includes/plugins/MenuBar2/SpryMenuBarKeyNavigationPlugin.js" type="text/javascript"></script>
<script src="../Spry-UI-1.7/includes/plugins/MenuBar2/SpryMenuBarIEWorkaroundsPlugin.js" type="text/javascript"></script>
<style type="text/css">
/* BeginOAWidget_Instance_2141544: #MenuBar */
/* Settable values for skinning a Basic menu via presets. If presets are not sufficient, most skinning should be done in
these rules, with the exception of the images used for down or right pointing arrows, which are in the file SpryMenuBasic.css
These assume the following widget classes for menu layout (set in a preset)
.MenuBar - Applies to all menubars - default is horizontal bar, all submenus are vertical - 2nd level subs and beyond are pull-right.
.MenuBarVertical - vertical main bar; all submenus are pull-right.
You can also pass in extra classnames to set your desired top level menu bar layout. Normally, these are set by using a preset.
They only apply to horizontal menu bars:
MenuBarLeftShrink - The menu bar will be horizontally 'shrinkwrapped' to be just large enough to hold its items, and left aligned
MenuBarRightShrink - Just like MenuBarLeftShrink, but right aligned
MenuBarFixedLeft - Fixed at a specified width set in the rule '.MenuBarFixedLeft', and left aligned.
MenuBarFixedCentered - - Fixed at a specified width set in the rule '.MenuBarFixedCentered',
and centered in its parent container.
MenuBarFullwidth - Grows to fill its parent container width.
In general, all rules specified in this file are prefixed by #MenuBar so they only apply to instances of the widget inserted along
with the rules. This permits use of multiple MenuBarBasic widgets on the same page with different layouts. Because of IE6 limitations,
there are a few rules where this was not possible. Those rules are so noted in comments.
#MenuBar {
background-color:#000;
font-family: Arial, Helvetica, sans-serif; /* Specify fonts on on MenuBar and subMenu MenuItemContainer, so MenuItemContainer,
MenuItem, and MenuItemLabel
at a given level all use same definition for ems.
Note that this means the size is also inherited to child submenus,
so use caution in using relative sizes other than
100% on submenu fonts. */
font-weight: normal;
font-size: 16px;
font-style: normal;
padding:0;
border-color: #ffffff #ffffff #ffffff #ffffff;
border-width:0px;
border-style: none none none none;
/* Caution: because ID+class selectors do not work properly in IE6, but we want to restrict these rules to just this
widget instance, we have used string-concatenated classnames for our selectors for the layout type of the menubar
in this section. These have very low specificity, so be careful not to accidentally override them. */
.MenuBar br { /* using just a class so it has same specificity as the ".MenuBarFixedCentered br" rule bleow */
display:none;
.MenuBarLeftShrink {
float: left; /* shrink to content, as well as float the MenuBar */
width: auto;
.MenuBarRightShrink {
float: right; /* shrink to content, as well as float the MenuBar */
width: auto;
.MenuBarFixedLeft {
float: left;
width: 80em;
.MenuBarFixedCentered {
float: none;
width: 80em;
margin-left:auto;
margin-right:auto;
.MenuBarFixedCentered br {
clear:both;
display:block;
.MenuBarFixedCentered .SubMenu br {
display:none;
.MenuBarFullwidth {
float: left;
width: 100%;
/* Top level menubar items - these actually apply to all items, and get overridden for 1st or successive level submenus */
#MenuBar .MenuItemContainer {
padding: 0px 0px 0px 0px;
margin: 0; /* Zero out margin on the item containers. The MenuItem is the active hover area.
For most items, we have to do top or bottom padding or borders only on the MenuItem
or a child so we keep the entire submenu tiled with items.
Setting this to 0 avoids "dead spots" for hovering. */
#MenuBar .MenuItem {
padding: 0px 24px 0px 0px;
background-color:#cccccc;
border-width:1px;
border-color: #cccccc #ffffff #cccccc #ffffff;
border-style: none solid none solid;
#MenuBar .MenuItemFirst {
border-style: none none none none;
border-top-color: #999;
border-right-color: #666;
#MenuBar .MenuItemLast {
border-style: none solid none none;
#MenuBar .MenuItem .MenuItemLabel{
text-align:center;
line-height:1.4em;
color:#333333;
background-color:#cccccc;
padding: 0px 30px 6px 39px;
width: 10em;
width:auto;
border-color: #033;
border-top-color: #000;
.SpryIsIE6 #MenuBar .MenuItem .MenuItemLabel{
width:1em; /* Equivalent to min-width in modern browsers */
/* First level submenu items */
#MenuBar .SubMenu .MenuItem {
font-family: Arial, Helvetica, sans-serif;
font-weight: normal;
font-size: 14px;
font-style: normal;
background-color:#ffffff;
padding:0px 2px 0px 0px;
border-width:1px;
border-color: #cccccc #cccccc #cccccc #cccccc;
/* Border styles are overriden by first and last items */
border-style: solid solid none solid;
#MenuBar .SubMenu .MenuItemFirst {
border-style: solid solid none solid;
#MenuBar .SubMenu .MenuItemFirst .MenuItemLabel{
padding-top: 0px;
#MenuBar .SubMenu .MenuItemLast {
border-style: solid solid solid solid;
#MenuBar .SubMenu .MenuItemLast .MenuItemLabel{
padding-bottom: 6px;
#MenuBar .SubMenu .MenuItem .MenuItemLabel{
text-align:left;
line-height:1em;
background-color:#ffffff;
color:#333333;
padding: 6px 12px 6px 5px;
width: 7em;
/* Hover states for containers, items and labels */
#MenuBar .MenuItemHover {
background-color: #999999;
border-color: #cccccc #cccccc #cccccc #cccccc;
#MenuBar .MenuItemWithSubMenu.MenuItemHover .MenuItemLabel{
background-color: #999999; /* consider exposing this prop separately*/
color: #000000;
#MenuBar .MenuItemHover .MenuItemLabel{
background-color: #999999;
color: #000000;
#MenuBar .SubMenu .MenuItemHover {
background-color: #cccccc;
border-color: #cccccc #cccccc #cccccc #cccccc;
#MenuBar .SubMenu .MenuItemHover .MenuItemLabel{
background-color: #cccccc;
color: #333333;
/* Submenu properties -- First level of submenus */
#MenuBar .SubMenuVisible {
background-color: #ffffff;
min-width:0%; /* This keeps the menu from being skinnier than the parent MenuItemContainer - nice to have but not available on ie6 */
border-color: #ffffff #ffffff #ffffff #ffffff;
border-width:0px;
border-style: none none none none;
#MenuBar.MenuBar .SubMenuVisible {/* For Horizontal menubar only */
top: 100%; /* 100% is at the bottom of parent menuItemContainer */
left:0px; /* 'left' may need tuning depending upon borders or padding applied to menubar MenuItemContainer or MenuItem,
and your personal taste.
0px will left align the dropdown with the content area of the MenuItemContainer. Assuming you keep the margins 0
on MenuItemContainer and MenuItem on the parent
menubar, making this equal the sum of the MenuItemContainer & MenuItem padding-left will align
the dropdown with the left of the menu item label.*/
z-index:10;
#MenuBar.MenuBarVertical .SubMenuVisible {
top: 0px;
left:100%;
min-width:0px; /* Do not neeed to match width to parent MenuItemContainer - items will prevent total collapse */
/* Submenu properties -- Second level submenu and beyond - these are visible descendents of .MenuLevel1 */
#MenuBar .MenuLevel1 .SubMenuVisible {
background-color: #ffffff;
min-width:0px; /* Do not neeed to match width to parent MenuItemContainer - items will prevent total collapse*/
top: 0px; /* If desired, you can move this down a smidge to separate top item''s submenu from menubar -
that is really only needed for submenu on first item of MenuLevel1, or you can make it negative to make submenu more
vertically 'centered' on its invoking item */
left:100%; /* If you want to shift the submenu left to partially cover its invoking item, you can add a margin-left with a
negative value to this rule. Alternatively, if you use fixed-width items, you can change this left value
to use px or ems to get the offset you want. */
/* IE6 rules - you can delete these if you do not want to support IE6 */
/* A note about multiple classes in IE6.
* Some of the rules above use multiple class names on an element for selection, such as "hover" (MenuItemHover) and "has a subMenu" (MenuItemWithSubMenu),
* giving the selector '.MenuItemWithSubMenu.MenuItemHover'.
* Unfortunately IE6 does not support using mutiple classnames in a selector for an element. For a selector such as '.foo.bar.baz', IE6 ignores
* all but the final classname (here, '.baz'), and sets the specificity accordingly, counting just one of those classs as significant. To get around this
* problem, we use the plugin in SpryMenuBarIEWorkaroundsPlugin.js to generate compound classnames for IE6, such as 'MenuItemWithSubMenuHover'.
* Since there are a lot of these needed, the plugin does not generate the extra classes for modern browsers, and we use the CSS2 style mutltiple class
* syntax for that. Since IE6 both applies rules where
* it should not, and gets the specificity wrong too, we have to order rules carefully, so the rule misapplied in IE6 can be overridden.
* So, we put the multiple class rule first. IE6 will mistakenly apply this rule. We follow this with the single-class rule that it would
* mistakenly override, making sure the misinterpreted IE6 specificity is the same as the single-class selector, so the latter wins.
* We then create a copy of the multiple class rule, adding a '.SpryIsIE6' class as context, and making sure the specificity for
* the selector is high enough to beat the single-class rule in the "both classes match" case. We place the IE6 rule at the end of the
* css style block to make it easy to delete if you want to drop IE6 support.
* If you decide you do not need IE6 support, you can get rid of these, as well as the inclusion of the SpryMenuBarIEWorkaroundsPlugin.js script.
* The 'SpryIsIE6' class is placed on the HTML element by the script in SpryMenuBarIEWorkaroundsPlugin.js if the browser is Internet Explorer 6. This avoids the necessity of IE conditional comments for these rules.
.SpryIsIE6 #MenuBar .MenuBarView .MenuItemWithSubMenuHover .MenuItemLabel /* IE6 selector */{
background-color: #999999; /* consider exposing this prop separately*/
color: #000000;
.SpryIsIE6 #MenuBar .MenuBarView .SubMenu .MenuItemWithSubMenuHover .MenuItemLabel/* IE6 selector */{
background-color: #cccccc; /* consider exposing this prop separately*/
color: #333333;
.SpryIsIE6 #MenuBar .SubMenu .SubMenu /* IE6 selector */{
margin-left: -0px; /* Compensates for at least part of an IE6 "double padding" version of the "double margin" bug */
/* EndOAWidget_Instance_2141544 */
</style>
<script type="text/xml">
<!--
<oa:widgets>
<oa:widget wid="2141544" binding="#MenuBar" />
</oa:widgets>
-->
</script>
</head>
<body>
<div class="container">
<div class="header"><a href="#"><img src="../images/demologo.jpg" width="727" height="109" align="middle" /><a href="#"></a><a href="#"></a><a href="#"></a></a><!-- end .header --></div>
<div class="sidebar1">
<ul class="nav">
<li><a href="#">OUR PRODUCTS</a></li>
<li><a href="#">Aprons</a></li>
<li><a href="#">Cushions</a></li>
<li><a href="#">Totes</a></li>
<li><a href="#">Tees</a></li>
<li><a href="#">Baskets</a></li>
<li><a href="#">Bags</a></li>
<li><a href="#">Accessories</a></li>
<li><a href="#">Wool Rugs</a></li>
<li><a href="#">Rug Rolls</a></li>
<li><a href="#">Deck Chairs</a></li>
<li><a href="#">Tea Towels</a></li>
<li><a href="#">Mugs</a></li>
<li><a href="#">Cards</a></li>
</ul>
<p> </p>
<!-- end .sidebar1 --></div>
<div class="content">
<ul id="MenuBar">
<li> <a href="#">Home</a></li>
<li> <a href="#">Blog</a> </li>
<li> <a href="#">About Us</a></li>
<li> <a href="#">Contact Us</a></li>
<li> <a href="#">About Paypal</a></li>
</div>
<p>
<script type="text/javascript">
// BeginOAWidget_Instance_2141544: #MenuBar
var MenuBar = new Spry.Widget.MenuBar2("#MenuBar", {
widgetID: "MenuBar",
widgetClass: "MenuBar MenuBarLeftShrink",
insertMenuBarBreak: true,
mainMenuShowDelay: 100,
mainMenuHideDelay: 200,
subMenuShowDelay: 200,
subMenuHideDelay: 200
// EndOAWidget_Instance_2141544
<!-- end .content --></div>
</script>
<div class="footer">
<p>Thank you for visiting us</p>
<!-- end .footer --></div>
<!-- end .container --></div>
</body>
</html>
Maybe you are looking for
-
How do you stop email addresses from being importing as contacts?
Contacts are automatically being built in the phone when emails are received. Is there a setting that will prevent this?
-
JVM problem with EJB...
Hi, I have an application which access EJBs located in WebSPhere Application Server 3.5 on a server. Why when i execute my application with SUN's JRE i have a problem (FAILED to Lookup Bean) and when i execute my application with Websphere'JRE, there
-
How to play a sound saved in myRIO
Hi, How could I call a file saved at usr/local/sbin in myRIO and send it to play? Thanks... Solved! Go to Solution.
-
TRAVEL WIDGET CLOCKS: On incredible
My Clocks on the Travel Widget ShowsCentral Time And the Current Time were i Live. i would like to change them if it possible I'D Like one of the Clocks to Show the Current Time in my Area: an the other Clock to show like the (time) In a Differe
-
CLOI_CHANGES_UPL_31 select routing
Hi All, Does anyone knows how to select the routing when using function module CLOI_CHANGES_UPL_31. I have tried to enter the routing group and counter number into CLOI_ORDI_IMP but doesn't work. Please kin Thanks.