Jump to content

How to ad image for categories and autoadjuste text?


Recommended Posts

Hello,

for my project in my scool i would like to ad a button on the left side frome each categorie.So i think its more eseayer to find some programmes.Can you tell me how can i ad this

Example:

post-109788-1159877757_thumb.jpg

My other probleme ist to create only a small window with my programmes but if the list is longer than the window the vertical scroll is not vissible but if its on fullscreen the scoll works perfectly.I don't understand this.Can you tell me why?

thx

Link to comment
Share on other sites


@silver74,

Not sure what is going on with your scrollbars, I'm assuming you've turned them on in Options>Installer Tab.

For Picture Insert - Open boxes.js

line 92 under //--label--

add:

txt += '<img src="' + "./themes/glossy/" + cat[i][0] + ".gif" + '" ';

where this assumes you will have an image named for each category you have (with a .gif extension) and that file would live in themes/glossy. Change the above statement for your location of images and image type but you will have to name the files with the categories, otherwise, this schema won't work.

For a quick view of how this works, specify a specific path to an existing image using the Glossy theme. insert this line in place of the one above:

txt += '<img src="./themes/glossy/check.gif" ';

You can also add border/size to the above statement to fit your images in. See this website for more details on the html format for images:Image Details

Other items to consider:

1. Disable the category checkboxes under Options>Installer Tab, Check "Disable category check boxes"

2. comment out the category name (4 lines down from where you inserted the picture statement)

//txt += '/>' + cat[i][0] + '</label>';

then add under it (recommended) or replace with:

txt += '/></label>';

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...