JavaScript Finally get rid of <script> tags containing global variable
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Finally get rid of <script> tags containing global variable

  1. #1
    Join Date
    Apr 2014
    Posts
    1

    Resolved Finally get rid of <script> tags containing global variable

    Advanced to 113 bytes:

    Code:
    <input onkeyup="s?e=Date.now():s=Date.now()"onblur="c=this.value.length;this.value+=c/(e-s)"><script>s=0</script>
    If I coudn't go without global script there're two other options. Tried this, not working:

    ☑ c=this.value.length;this.value+=c/(e-s)
    x=this.value;c=x.length;x+=c/(e-s)

    And if there's no way of shortening segment too:

    Code:
    onkeyup="s?e=Date.now():s=Date.now()"
    the upper [+ span of 20 symbols maximum] (on the cost of <scripts> elimination)

    I'll put my hands carefully up.

  2. #2
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002
    Posts
    10,880

    Re: Finally get rid of <script> tags containing global variable

    What is the point of this post? It's just jibberish in it's current state. Are you trying to ask for help? If so, what exactly is your question?
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Tags for this Thread

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center