Jump to content

Recommended Posts

Posted

For each pet you want to display, use the following code:

<a href="http://www.neopets.com/petlookup.phtml?pet=INSERT_PET_NAME_HERE">
<img src="//images.weserv.nl/?url=http://pets.neopets.com/cpn/INSERT_PET_NAME_HERE/1/3.png">
</a>

So if you have 5 pets, copy and paste the entire code above 5 times, replacing INSERT_PET_NAME_HERE with your pet's name. The pets will show up beside one another on the same row. If you want to start a new row, you need to add a line break: <br>.

 

For example, if you have 3 pets, and you want two rows, one on the first row, and two on the second, you would have the following code:

<a href="http://www.neopets.com/petlookup.phtml?pet=INSERT_PET_NAME_HERE">
<img src="//images.weserv.nl/?url=http://pets.neopets.com/cpn/INSERT_PET_NAME_HERE/1/3.png">
</a>
<br>
<a href="http://www.neopets.com/petlookup.phtml?pet=INSERT_PET_NAME_HERE">
<img src="//images.weserv.nl/?url=http://pets.neopets.com/cpn/INSERT_PET_NAME_HERE/1/3.png">
</a>
<a href="http://www.neopets.com/petlookup.phtml?pet=INSERT_PET_NAME_HERE">
<img src="//images.weserv.nl/?url=http://pets.neopets.com/cpn/INSERT_PET_NAME_HERE/1/3.png">
</a>
Posted

One other thing you may want to add is putting the code from jcpet into a div so that you can move it around and position it how you want it on your lookup. So your code would look something like this:

<div id="pets"
<a href="http://www.neopets.com/petlookup.phtml?pet=INSERT_PET_NAME_HERE">
<img src="//images.weserv.nl/?url=http://pets.neopets.com/cpn/INSERT_PET_NAME_HERE/1/3.png">
</a>
<br>
<a href="http://www.neopets.com/petlookup.phtml?pet=INSERT_PET_NAME_HERE">
<img src="//images.weserv.nl/?url=http://pets.neopets.com/cpn/INSERT_PET_NAME_HERE/1/3.png">
</a>
<a href="http://www.neopets.com/petlookup.phtml?pet=INSERT_PET_NAME_HERE">
<img src="//images.weserv.nl/?url=http://pets.neopets.com/cpn/INSERT_PET_NAME_HERE/1/3.png">
</a>
</div>

The div id is just a name for the div that you can use CSS to move it around on your lookup like you would your modules. Something like this for example:

#pets {
margin-top: 0px;
margin-left: 0px;
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...