#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Posts
    29
    Rep Power
    0

    [SOLVED]Alert box customization


    http://pastebin.com/uqqRMhui

    Hi to all. In code that i`ve been pasted, is shown a alert box. Can i create a function who change text in alert box"Client is not specified !" and "ERROR" text too. I want to implemented to my future site.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Oct 2009
    Location
    Nebraska, USA
    Posts
    867
    Rep Power
    275
    if you are just wanting to use different TEXT, you can do that easily without any other functions, by just changing the TEXT in this section of the code.
    Code:
    <div id="header">
        <div id="header-error">ERROR</div>
        <div id="header-x" href="#" onclick="fclose()">
            <p><img src="X.jpg"></p>
        </div>
    </div>
     
    <p style="font-size:14px; margin:35px 0 0 0; font-family:arial" >Client not specified !</p>
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Posts
    29
    Rep Power
    0
    I need another solution for this problem. I have to make this alert box to appear without DIVs and html code. Only JavaScript. Now i dont have a idea how ot do that. This is my latest code :
    http://pastebin.com/f0cAk1Js

    Actually div who create alert box is has to be gone. Only on click event has to be show alert box. NO HTML CODE.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2013
    Posts
    26
    Rep Power
    0
    maybe like this
    codingforums.daveyerwin.com/val10
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Posts
    29
    Rep Power
    0
    Originally Posted by daveyerwin
    maybe like this
    codingforums.daveyerwin.com/val10
    Exactly.

IMN logo majestic logo threadwatch logo seochat tools logo