phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

Need my images to do this.


 
Search this topic... | Search General Support... | Search Box
Register or Login to Post    Index » General Support  Previous TopicPrint TopicNext Topic
Author Message
Acaria
Board Member



Joined: 20 Feb 2009

Posts: 238



PostPosted: Sun May 03, 2009 6:34 pm 
Post subject: Need my images to do this.

Okay, so I've grown quite frustrated with NulAvatar. I'm starting to work on a new look for it so I won't have to deal with people having to scroll through thousands of layers.

I have it to where the images are all showing up at once in the same box, no matter the layer. You can click and add them to the avatar just fine. However, I can't get them to unequip.

I want it to be so where the first time you click the image it adds it to the avatar. Once the image is "active" on the avatar, when you click the image it will unequip it.

Here's the code I'm using so far:

Code:
<script language="JavaScript">
   function toggle(div) {
      <!-- BEGIN layers -->
      document.getElementById('NA_layer' + {layers.ID}).style.display = "none";
      <!-- END layers -->

      document.getElementById('NA_layer' + div).style.display = "block";
   }

   function image_over(img) {

   }
</script>
 
  <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
   <tr>
     <td align="left"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a>{LOCATION}</span></td>
   </tr>
  </table>
  <table width="99%" cellpadding="4" cellspacing="1" border="0" align="center" class="forumline">
   <tr>
     <th class="thHead">{TITLE}</th>
   </tr>
   <tr>
        <td class="row1" height="100%">
      <span class="gen">

      <center>
      <b>{HEADER_TITLE}</b><br /><br />
      <form method="post" action="" name="nulavatarlayers">
      <table width="60%" border="0" cellspacing="0" cellpadding="0">
      <tr>
         <td valign="top" width="{WIDTH}" height="{HEIGHT}" class="row1">
            {PREVIEW_IMG}
            <img src="{SPRITES_PATH}/spacer.gif" width="{WIDTH}">
         </td>
         <td valign="top" width="100" class="row1">
            &nbsp;
         </td>
         <td valign="top" align="right">
            <table width="100%" border="0" cellspacing="2" cellpadding="0">
            <tr>
</tr>
<tr>
<td class="row2" width="100%" colspan="{CELLWIDTH}" align="left"><span class="gensmall">
<table cellpadding="5" cellspacing="0" border="0" width="100%" class="bodyline">
<tr><td class="row2" align="left"><span class="gensmall">

<!-- BEGIN layers -->


<!-- BEGIN items -->
&nbsp;<img src="{SPRITES_PATH}/{layers.items.IMAGE}" alt="{layers.items.ITEMNAME}" title="{layers.items.ITEMNAME}"  onClick="document.images['{layers.items.IMAGE_NAME}'].src = '{SPRITES_PATH}/{layers.items.IMAGE}'; document.nulavatarlayers.{layers.items.NAME}.value='{layers.items.IMAGE}'">&nbsp;
<!-- END items -->

</div>

<!-- BEGIN layer_value -->
<input type="hidden" name="{layers.layer_value.NAME}" value="{layers.layer_value.VALUE}">
<!-- END layer_value -->
<!-- END layers -->

                     </span></tr></tr>
                  </table>
               </span></td>
            </tr>
            </tr>
               <td class="row2" colspan="{CELLWIDTH}" align="center">
                  <table cellpadding="3" cellspacing="0" border="0" width="100%" class="bodyline">
                     <tr><td nowrap="nowrap" class="row2" align="center">
                        <span class="gen">{BUTTON}</span>
                     </tr></td>
                  </table>
               </td>
            </tr>
            </table>
         </td>
         </form>
      </table>
      <br />
      </center>

      </span>
        </td>
   </tr>
  </table>

<br   clear="all" />


That's the whole "nulavatar_tabs_body.tpl" file.

If you can help me I'll be very grateful!


I'm sorry if this is in the wrong place/doesn't belong on this board. I tried posting on web design sites and they said "Go to a PhpBB2 board for support. *lock*" >.>
Back to top
Display posts from previous:   
Register or Login to Post    Index » General Support  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0286 seconds using 15 queries. (SQL 0.0019 Parse 0.0008 Other 0.0259)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo