• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
F
Reaction score
4

Profile posts Latest activity Postings Media Albums About

  • ok, i think i finally have the solution... hopefully
    this will take a bit of effort on your part
    the switchpic.js is no longer needed
    but now the script is this:

    <script src="switchpic.js" type="text/javascript">
    function switchPicImg(switchTo){
    var img = new Array();
    img[1] = "NORMAL PIC";
    img[2] = "SHINY PIC";
    img[3] = "FRAME ONE";
    img[4] = "FRAME TWO";
    img[5] = "FRONT";
    img[6] = "BACK";
    img[7] = "DP";
    img[8] = "PLATINUM";
    src = img[switchTo];
    document.getElementById('picImg').src = src;
    }
    </script>
    and the links should be in ""s above
    the coding in the page is good for now
    *hits head*(i would have done the same thing.....)
    i would switch the src="Bulbasaur SwitchPic.js" to src="switchpic.js" for starters
    {QUOTE=~Frozen Darkness~}{QUOTE=pokesplash}this is the file
    just paste everything from below into a file named switchpic.js
    the instructions are in the file



    {CODE}

    /**************************
    Working with this document:
    to integrate this script please add this to the head of your HTML page:
    (the {}'s must be replaced completely (and the {}'s should be removed themselves))
    (the first set of {}'s must link to the images, along with the one inside of the <img>)
    (the height should be the same for all of the pictures as well as the width)

    <script src="switchpic.js" type="text/javascript">
    var img = new Array();
    img[1] = {NORMAL PIC};
    img[2] = {SHINY PIC};
    img[3] = {FRAME ONE};
    img[4] = {FRAME TWO};
    img[5] = {FRONT};
    img[6] = {BACK};
    img[7] = {DP};
    img[8] = {PLATINUM};

    switchPicImg();
    </script>



    put this into the body where the switching application will be:

    <p><img src="{NORMAL PIC}" id="picImg" name="picImg" alt="pokemon sprites" style="width: {WIDTH}px; height: {HEIGHT}px;"></p>
    <p><input type="hidden" name="hiddenValue" id="hiddenValue">
    <select name="chooseImg" id="chooseImg" onchange="document.getElementById('hiddenValue').value = this.value; switchPicImg(document.getElementById('hiddenValue').value);">
    <option value="1">NORMAL</option>
    <option value="2">SHINY</option>
    <option value="3">FRAME ONE</option>
    <option value="4">FRAME TWO</option>
    <option value="5">FRONT</option>
    <option value="6">BACK</option>
    <option value="7">DP</option>
    <option value="8">PLATINUM</option>
    </select></p>

    **************************/
    function switchPicImg(switchTo){
    src = img[switchTo];
    document.getElementById('picImg').src = src;
    }{/CODE}{/QUOTE}

    (the first set must link to the images, along with the one inside of the <img>)

    What does that mean? Please highlight in a different color, if you can, where the link should be please.{/QUOTE}
    so these are the links to all of the pictures(and this is for the default picture)
    then these are for the width and height of the pics
    sorry for all the confusion

    -aparently your pm space is full
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
Back
Top