Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    644
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Eula

    Add to head:

    Code:
    <script language="javascript1.2" type="text/javascript">
    
    submit_accept = false;
    function chk_sub(bg,cl,tbg,tcl,txtbg,txtcl,frm) {
    document.getElementById("eula").style.backgroundColor = bg;
    document.getElementById("eula").style.color = cl;
    document.getElementById("button1").style.backgroundColor = bg;
    document.getElementById("button1").style.color = cl;
    document.getElementById("button2").style.backgroundColor = bg;
    document.getElementById("button2").style.color = cl;
    document.getElementById("ttlbar").style.backgroundColor = tbg;
    document.getElementById("ttlbar").style.color = tcl;
    document.getElementById("txtarea2").style.backgroundColor = txtbg;
    document.getElementById("txtarea2").style.color = txtcl;
    l = ((parseInt(document.body.clientWidth)-380)/2);
    t = ((parseInt(document.body.clientHeight)-424)/2);
    if (l<0) { l=0 };
    if (t<0) { t=0 };
    document.getElementById("eula").style.display = "";
    document.getElementById("eula").style.left = l;
    document.getElementById("eula").style.top = t;
    frm2 = frm;
    }
    function loader() {
    tblhtml = '<table border="0" cellspacing="2" cellpadding="0" style="position: absolute; z-Index: 100; background-color: menu; width: 380px; height: 424px; border: 2px white outset; font-family: Tahoma; font-size: 11px; text-align: justify; display: none;" id="eula">'+
    '<tr>'+
    '<td style="width: 480; height: 20px; color: white; font-size: 12px; background-color: highlight; font-family: Arial; font-weight: bold;" id="ttlbar">&nbsp;HTML Help Workshop 1.3</td>'+
    '</tr>'+
    '<tr>'+
    '<td style="height: 20px; padding-left: 10px; padding-right: 10px;"><br>Please read the following agreement.<br><br></td>'+
    '</tr>'+
    '<tr>'+
    '<td style="text-align: center;">'+
    '<textarea style="width: 360px; height: 250px; font-family: Tahoma; font-size: 11px;" id="txtarea2" readonly></textarea></td>'+
    '</tr>'+
    '<tr>'+
    '<td style="height: 20px; padding-left: 10px; padding-right: 10px;"><br>Do you accept all of the terms of the preceding License Agreement? If you Choose No, you will not be able to continue. To continue you must accept this agreement.<br><br></td>'+
    '</tr>'+
    '<tr>'+
    '<td style="height: 20px; text-align: right; padding-right: 10px; padding-bottom: 10px;">'+
    '<input type="button" value="Yes" style="width: 75px; height: 22px;" onclick="submit_accept = true; frm2.submit();" id="button1">&nbsp;&nbsp;'+
    '<input type="button" value="No" style="width: 75px; height: 22px;" onclick="document.getElementById(\'eula\').style.display=\'none\';" id="button2">'+
    '</td>'+
    '</tr>'+
    '</table>'
    tmp = document.getElementById('txtarea1').innerHTML;
    document.getElementById('txtarea1').innerHTML = tblhtml;
    document.getElementById('txtarea1').style.display = "";
    document.getElementById('txtarea2').innerHTML = tmp;
    }
    
    window.onload = loader;
    
    </script>
    add to form:

    Code:
    onSubmit="chk_sub('menu','black','highlight','white','white','black',this); if (!submit_accept) { return false; };"
    add to body:

    Code:
    <div id="txtarea1" style="display: none;">
    This is my EULA!
    </div>
    Give it a try. http://pages.infinit.net/mvideos/agree.htm

    Tested in IE6

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    pretty sweet looking, only thing is you may want to add another layer behind it so that nothing on the page can be selected..

  • #3
    New Coder
    Join Date
    Jun 2002
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    blek

    Drop down form menu's show through the EULA "window" for me.

    i'm using IE 6.0

    [edit] Also.... after toying with it a bit I was wondering how to allow html in the main text box. All I really need accomplished is to be able to use <br> tags or another method of breaking lines.
    Last edited by HELLSS; 11-12-2002 at 08:13 AM.
    blek..

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    644
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanx for the input. Soryy but I don't know how to fix that.

    but I did ask:
    how do you get a layer to appear over a drop menu?

    If that doesn't pull through I can always redo it with a popup.

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    1,137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    instead of using <Br> use \n thats what think it is, it might be n\ though.

    scroots
    Spammers next time you spam me consider the implications:
    (1) that you will be persuaded by me(in a legitimate mannor)
    (2)It is worthless to you, when i have finished

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    644
    Thanks
    0
    Thanked 0 Times in 0 Posts

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    41 8' 52" N -95 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I realize it's cool... but for me on IE 5.5 it pops up with only the bottom half displayed on my monitor, and it isn't "draggable".

    Wouldn't something like this (a EULA) be better displayed on a webpage form unless you're actually using it with a software installation?

    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #8
    New Coder
    Join Date
    Jun 2002
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    blek

    *bows to goose*

    Here's the page i'm using this script at BTW:
    http://www.customc.net/hosted/hellss...ewebsite.shtml

    Havent implimented the new html allowable version yet though, may have by the time you see this .

    [edit] and no... I did'nt make that pages layout to mimic the EULA one, my website already has a layout setup with windows like that and the EULA fits well
    Last edited by HELLSS; 11-15-2002 at 03:07 AM.
    blek..

  • #9
    Regular Coder
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    644
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Slowly getting better.

    http://pages.infinit.net/mvideos/agree3.htm

    This time done using a popup, but haven't set up custom colors yet. I also had a bit of trouble getting it to stay on top, but I think its my pc. Its acting really weird with onblur and onfocus. I also plan on making the IE version draggable, but not today.

  • #10
    Regular Coder
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    644
    Thanks
    0
    Thanked 0 Times in 0 Posts
    IE DRAGGABLE!

  • #11
    New Coder
    Join Date
    Jun 2002
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    blek

    eeep. that link opens the EULA in full-screen mode on a white background, and is'nt draggable for me.

    Usin IE 6
    blek..

  • #12
    Regular Coder
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    644
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Works fine for me in ie6 and moz1.2b.

    Have you tried any other chromeless wiindow scripts?

    http://www.dynamicdrive.com/dynamici...chromeless.htm

  • #13
    New Coder
    Join Date
    Jun 2002
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Those open full screen for me as well :/... I've been to that page at dynamic drive before and I don't remember them going full screen on me.
    blek..

  • #14
    Senior Coder
    Join Date
    Jun 2002
    Location
    41 8' 52" N -95 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Works good for me now- I kind of like it.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #15
    Regular Coder
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    644
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well a half approval isn't too bad.

    I know it still needs work.


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •