User lookup tutorials, finished lookup sample shown:
Lookup preview:
This tutorial is for those who have basic coding skills and know how to use an image program.
This tutorial is specifically for Photoshop CS or MS Paint. If you have another image program, then you can still work your way through,
but of course you'll have to adjust some of my directions to make it work for you.
If you're not sure about what is and is not ok with me regarding credit and use of my code, neomail me.
Basic Rules:
Please leave some form of credit on the lookup, link or no link, text or image, invisible HTML comment or visible.
Oh, and before you ask, yes you may make premades with the code from this tutorial.
But please leave credit on the page of premades if you do.
First, you need a top image. I used this one:
It can be anything, just make it big-ish. Mine's 700px wide after resizing.
That's usually a good size. You can make it a bit narrower if you don't have 4 pets. Make it wider if you have 4 pets and if you want to show your neohome as well.
Edit the image however you want, and then put some sort of stroke, outline, or border around it. (This is of course, optional. You don't need a border, or you can just have it around the left and right. If you opt for that, draw the borders by hand.)
I just did a stroke effect here, for simplicity's sake.
Now make your canvas a little bit longer, and make sure it only gets longer at the bottom by using the Anchor option.
In Photoshop it's under Image - Canvas Size...
Now, use the pencil tool to extend your stroke/outline/border down, beyond the image itself. Do so on both the left and the right. (Skip this if you chose not to have a border.)
Make a new layer and put it under all the other layers.
Then use the paint bucket tool to fill in the empty space under your main image and between the lines you just drew.
This finishes the part your stats tables will go in.
Use the rectangle tool at a low opacity to make a box for your text later on.
Go to #3 under notes on the code if you want to skip this box drawing step and still have a see through box for your text.
Save your image. It should look something like this:
Open the image you just saved. Set your select tool to Fixed Size (see top of screenie).
Make the width match your image width and the height 1px. Select the very bottom row of your image, and copy it.
Then make a new file and paste the row you just copied. Save it, it's going to be the background image.
This is the background for my lookup:
In the code, we'll make it repeat so it'll cover the whole page.
For now, upload the image to an online images host and find the direct URL to use in Step 2.
Open up your image. I used one of the backgrounds from Neopets.
Select the part of the image you want to use:
Copy and paste into a new file. Go to Image - Attributes to check the size of your image.
Make it something close to 700 if possible. 600 is probably too narrow for your stats to fit. If it's closer to 800, then it's ok.
Use the line tool to draw a border around the image (hold down Shift to keep the line straight). (The border is optional, of course. You can skip it altogether or just have it on the left and right.)
Go to Image - Attributes, and make the height slightly bigger.
This should add a little bit of white to the bottom of your image.
Draw the border again, extending it down past the image. (Skip this if you chose not to have a border.)
Use the paint bucket tool to fill in the white space between the new lines you just drew. (If you don't have a border, just fill in the blank part of the canvas.)
Use the rectangle tool to draw a box for your text later on: To see how to get the see through effect with Paint, see #3 under notes on the code further down the page.
Save. This is your top image, and it should look something like this:
Use the select tool to select part of the bottom of your top image.
Copy and paste into a new file. It's ok if there's white space around it, we're going to fix that.
Go to Image - Attributes again, and make the height 1px. The width should already match your top image.
Save. This is your background image, and it should look like this:
And that's it for the images. Upload the images to an online image host and find the direct URL to use in Step 2.
In another program things will of course be different. Just make sure you have these things:
1. A top image with some sort of border
2. A continuation of that border down beyond the image, with a background color
3. A 1px high background image that matches the bottom row of your top image
This is the code we'll be working with. Text in RED are things you need to change.
Text in BLUE are my notes about what the red parts change.
The numbers correspond to the numbers on the reference pic below the code so that you know what you're changing.
Remember, I'm assuming you already have some knowledge of how this all works.