User Profile

Collapse

Profile Sidebar

Collapse
Carcharoth
Carcharoth
Last Activity: May 8 '10, 10:30 AM
Joined: May 8 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Carcharoth
    started a topic How to replace a specidfic character in a phrase
    in Java

    How to replace a specidfic character in a phrase

    I want to replace the 3 last characters of file, just before the dot in extension.

    I know there is a command to do it but i just can't fine it.

    I want it to go like this

    [code= Javascript]

    Var file = self.location.t oString();
    Var MyVar= ( 3 last characters before extension)


    If MyVar="_en" replace with "_gr"

    else replace with...
    See more | Go to post

  • Link to a page depending your current address.

    I want to make a script which will be reading the name of the file the user is viewing, then change it, and then load it again. And all these into one button

    eg. when user is pressing the "Change Language" button the "Home_en.ht ml" to become "Home_gr.ht ml"

    but i don't want to put it on the page's code I want to call it on every page i want to use it.

    Is it possible for javascript...
    See more | Go to post
    Last edited by Niheel; May 8 '10, 03:54 PM. Reason: Spelling, grammar
No activity results to display
Show More
Working...