Variables - Please help!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kresimir

    Variables - Please help!

    I have this function:
    _______________ _____

    function kk () {
    var c = %ANCHOR%+1
    var b = new String("s"+c)
    parent.TopFrame .location = '%NEXTIMAGE%';
    parent.BottomFr ame.location.hr ef = '../ThumbnailFrame. htm#b'}
    _______________ _____


    I want to put variable "b" as anchor in the last row (in this last link).
    I tried this but it doesnt work becouse javascript didnt recognize "b" as
    variable. Please help!!!!

    THANKS !!!!!!

    PS. Sorry, but my English is little week.


  • Randy Webb

    #2
    Re: Variables - Please help!

    Kresimir wrote:
    [color=blue]
    > I have this function:
    > _______________ _____
    >
    > function kk () {
    > var c = %ANCHOR%+1
    > var b = new String("s"+c)
    > parent.TopFrame .location = '%NEXTIMAGE%';
    > parent.BottomFr ame.location.hr ef = '../ThumbnailFrame. htm#b'}
    > _______________ _____
    >
    >
    > I want to put variable "b" as anchor in the last row (in this last link).
    > I tried this but it doesnt work becouse javascript didnt recognize "b" as
    > variable. Please help!!!![/color]

    parent.BottomFr ame.location.hr ef = '../ThumbnailFrame. htm#' + b;
    }



    --
    Randy
    comp.lang.javas cript FAQ - http://jibbering.com/faq

    Comment

    Working...