RomeScape
November 22, 2017, 12:20:56 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: My new email:
Pankers7@gmail.com
email me if u need anything Tongue
 
   Home   Forum Help Search Arcade Staff List Login Register  

Pages: [1] 2 3 ... 10
 1 
 on: October 17, 2014, 05:34:03 am 
Started by Mazead - Last post by Mazead
I may be asking for the impossible but I am trying to create an opt-in page. I have a large full screen image and am trying to embed the script for the box where you enter the email address and the submit button. Is this possible? I am using a html editor and am trying to place some kind of text box or cell in the image to put the script but every time I try it, it deletes the picture. I guess you cannot place one item on top of another in html?

 2 
 on: October 17, 2014, 05:32:07 am 
Started by Mazead - Last post by Mazead
I'm having a little issue, I've making drop downs for a site I'm currently designing, but when I click one drop down the title next to it moves down with the menu, also when I click another drop down with one already open, the current one doesn't scroll back up, meaning all drop down cam be open at once which I obviously don't need, here's my code:

<HTML>
<HEAD>
<script type="text/javascript" src="http://static.tumblr.com/3ikgvxs/0TGl4zgpu/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".links_body").hide();
$(".links_head").click(function(){
$(this).next(".links_body").slideToggle('fast');
}); }); </script>
<style type="text/css">
.links_list { margin:0px; padding:0px; width:180px;}
.links_head { padding-top:5px; padding-bottom:5px; cursor:pointer; position:relative; margin:1px; text-align:center;}
.links_body { padding:10px; text-align:left; color: #fff; display:none;}
</style>
</HEAD>
<BODY>
<table style="width:20%">
<td>
<div class="links_list">
<p class="links_head">Posters</p>
<div class="links_body">
<center>
<ul>
<li> <a href="LINK URL">Pre 1930's</a> </li>
<li> <a href="LINK URL">Pre 1930's</a> </li>
<li> <a href="LINK URL">Pre 1930's</a> </li>
</center>
</div></div>
</td>
<td>
<div class="links_list">
<p class="links_head">Posters</p>
<div class="links_body">
<center>
<ul>
<li> <a href="LINK URL">Pre 1930's</a> </li>
<li> <a href="LINK URL">Pre 1930's</a> </li>
<li> <a href="LINK URL">Pre 1930's</a> </li>
</center>
</div></div>
</td>
<td>
<div class="links_list">
<p class="links_head">Posters</p>
<div class="links_body">
<center>
<ul>
<li> <a href="LINK URL">Pre 1930's</a> </li>
<li> <a href="LINK URL">Pre 1930's</a> </li>
<li> <a href="LINK URL">Pre 1930's</a> </li>
</center>
</div></div>
</td>
</table>


</BODY>
</HTML>

Thanks for any help

 3 
 on: October 17, 2014, 05:27:23 am 
Started by Mazead - Last post by Mazead
I need someone help with Image maps

On my website i have popup (image map) and i want it to be closed (the whole popup)after 3 seconds when you click on some image map area (which opens up the new window)

<map name="covermap">
<area alt="youtube" coords="460,486,1162,778" shape="rect" href="-------------" target="_blank"
>
<area alt="youtube" coords="460,486,1162,778" shape="rect" href="-------------" target="_blank"
>
<area alt="youtube" coords="460,486,1162,778" shape="rect" href="-------------" target="_blank"
>
</map)

 4 
 on: October 17, 2014, 05:22:42 am 
Started by Mazead - Last post by Mazead
To speed up page load, I'm adding inline style to my html for the images - but curiously, the recommended w3schools method isn't working:
Quote
<img src="test.png" alt="test" width="120" height="80"/>

...while what I thought was 'old fashioned' is:

Quote
<img src="test.png" alt="test" style="width:300px; height:auto"/>

I'm using XHTML 1.0 Transitional - is the first example HTML5 only?

 5 
 on: October 17, 2014, 05:17:46 am 
Started by Mazead - Last post by Mazead
hello i want ot know whats wrong with this code cause it shows up with all my header thing except that home is a in little tiny lettering and purple at the top right of my screen. here is the code:

Quote
<head>
   <meta charset="UTF-8">
   <title>sign up</title>
   <link rel="stylesheet" href="css/style.css" type="text/css">
</head>
<body>
   <div id="header">
      <div>
         </a>
         <ul>
         <a href="index.html">Home</a>
            </li>
            <li>
               <a href="files.html">Files</a>
            </li>
            <li>
               <a href="about.html">About</a>
            </li>
            <li>
               <a href="contact.html">Contact</a>
            </li>
                           <li class="selected">       <a href="signup.html">Sign up</a>
                  </ul>
      </div>
   </div>
   <div id="body" class="home">
      <div class="blog">
                  <div>
          </div>
      </div>
      <div class="article">
         <div>
   <form name = "input" action = "sign_up_action" method = "get"> Username: <input type="text" name="user"><br> Password: <input type = "password" name = "pass"> <br>
Email: <input type = "text" name = "email"><br><input type="submit" value="Submit"> </form>



                              
                                                                                  </div>
         
      </div>
      <div class="news">
         
         <div>
                                             </div>
      </div>
   </div>
   <div id="footer">
      <div>
                        <div class="connect">
         </div>
      </div>
   </div>
</body>
</html>

 6 
 on: October 11, 2014, 06:43:15 pm 
Started by Mazead - Last post by Mazead
I would like my JEditorPane to process any text file as html file.

Quote
String file = "cube.obj";
JEditorPane t = new JEditorPane();
t.setEditable(true);
try {
   URL url = new URL(getCodeBase(), file);
   t.setPage(url);
} catch (NumberFormatException | IOException e) {
   e.printStackTrace();
}


Is it possible? My first idea was to read my text file line by line and add these lines to editor pane, but is there any more "elegant" solution?

 7 
 on: October 11, 2014, 06:30:31 pm 
Started by Mazead - Last post by Mazead

When I compile my java application in NetBeans there's no problem but when I try to run my application through the command prompt I get the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: CarInsuranceCalc (wrong name: pkgCarInsuranceCalc/CarInsuranceCalc)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)

 8 
 on: October 11, 2014, 06:26:24 pm 
Started by Mazead - Last post by Mazead
For some reason, I'm having problems sending output to a process that I've created in Java. The external process is running in a command prompt, and the peculiar thing is that I can click that, type, hit enter, and I'll get output from the program.

Anyways, here is the relevant code I'm using that just isn't working...

Quote
try {
    ProcessBuilder builder=new ProcessBuilder(args);
    builder.redirectErrorStream(true);
    final Process p=builder.start();
    // Process has been created and is running
    try {
        String b="";
        BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));
        final BufferedWriter output = new BufferedWriter(new OutputStreamWriter(p.getOutputStream()));
        new Thread(){public void run(){
            // This thread will periodically send "get_time" to the process to get an update on its progress
            while(true)
            {
                try {
                    Thread.sleep(1000);
                    p.exitValue();
                    // p.exitValue() only works when process has ended, so normal code goes in the catch block
                    output.close();
                    break;
                    // Leave the infinite loop if the program has closed
                } catch (IOException ex) {
                    Logger.getLogger(OvMusicUI.class.getName()).log(Level.SEVERE, null, ex);
                    break;
                    // Leave the infinite loop if we tried closing our output stream, but it was already closed
                } catch (InterruptedException ex) {
                    Logger.getLogger(OvMusicUI.class.getName()).log(Level.SEVERE, null, ex);
                } catch (IllegalThreadStateException e) {
                    try {
                        System.out.println("Outputted: get_time");
                        output.write("get_time" + System.lineSeparator());
                        // Give the process some input
                    } catch (IOException ex) {
                        Logger.getLogger(OvMusicUI.class.getName()).log(Level.SEVERE, null, ex);
                    }
                }
            }
        }}.start();
        while((b = input.readLine()) != null){
            System.out.println(new Time(System.currentTimeMillis()).toString() + " " + b);
            // Log all output the process gives
        }
        input.close();
    } catch (IOException ex) {
        Logger.getLogger(OvMusicUI.class.getName()).log(Level.SEVERE, null, ex);
    }
    // More code here
} catch (IOException ex) {
    Logger.getLogger(OvMusicUI.class.getName()).log(Level.SEVERE, null, ex);
}


If necessary, I can give an example command and the name of the external program being run so you can try it yourself...

Thanks!

 9 
 on: October 11, 2014, 06:17:46 pm 
Started by Mazead - Last post by Mazead
Here is the code. (This is all mine, I am showing how I coded it.) I try to code very simple and straight forward. If you guys have any tips or comments please comment or PM me.

Quote
public class Diamond {
   
   public static void main(String[] args){
      
      int space = 5;
      int stars = 1;
      
      for(int height = 1; height <= 6; height++){
         
         
         for(int x = 1; x <= space; x++){
            System.out.print(" ");
            
         }
         
         space--;
         
      for(int x = 0; x < stars; x++){
         System.out.print("*");
      }
         
      stars += 2;
      System.out.println();
         
      }
   
      space = 1;
      stars = 9;
      
         for(int height = 1; height <= 6; height++){
         
         
      for(int spaces = 1; spaces <= space; spaces++){
         System.out.print(" ");
      }
      
      space++;
      
      for(int x = 0; x < stars; x++){
         System.out.print("*");
      }       
           
         stars -= 2;
           
      System.out.println();
         
      }
   }
   
   
}

 10 
 on: October 11, 2014, 06:09:42 pm 
Started by Mazead - Last post by Mazead
How can I read input from console ( numbers) using java.util.Scanner when the numbers are separated by any number of spaces and line breaks??

Pages: [1] 2 3 ... 10
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum | Buy traffic for your forum/website
Powered by SMF | SMF © 2016, Simple Machines