View Full Version : image display from an array

06-02-2006, 11:48 PM
Hi guys and girls

I've searched and searched but haven't managed to find out how i can get an image to display when the url is stored in an array; let me try to make it a lil more understandable.

I got the following code: http://www.javascriptkit.com/script/script2/eventscalendar.shtml

Its the events calendar.

When i click on a date that has an event the right text box displays information about that event. I however, want to display an image with description from a url that I have (meaning it needs to be inserted into the array in the events.js file). How on earth do i do that?

Im making a website for an artist friend of mine and would like to make a calendar displaying the events where she is performing at with a picture and some text/description. Perhaps i should be looking for something a little more userfriendly where she could submit her dates, edit and delete them through an admin panel - if you know of a better script than the one i am currently using, please let me know!

06-03-2006, 02:55 AM
didnt think it was that difficult to fix? :eek:

06-03-2006, 03:01 AM
calendars can take up a lot of time

not willing to modify code but look at my site, find one that looks similar and I may modify it for you.

06-03-2006, 08:43 PM
thanks mate =) appreciate it. I took a look at your calendars, they pretty good! :thumbsup:

However, what i need is to be able to submit images into the calendars so that they display in the memos. Preferably be able to do this through an admin panel so that normal visitors cant edit it. I've been looking for something like this for ages, but no luck. Its basically so people can see party events flyers for her gigs. Any ideas?

06-03-2006, 08:47 PM
At the moment memo panes may containe text reqistered in an array for matxhing dates

Yhere is no reason why this text cannot be an image, can do this but how you register the image in the array would be your problem.

06-04-2006, 01:38 AM
how do i make the image link without having it display as text? appreciate the help!

06-04-2006, 10:16 AM
I took a look at your calendars, they pretty good!

what one did you want to use

06-04-2006, 02:16 PM


use image HTM Code as message or assign background-image of message class rule

06-04-2006, 06:15 PM
Appreciate all the help your giving.

I want to keep with the calendar im currently using, but just edit it in such a way that i can post pictures.

I tried using <.img src="".> (without the '.') and it only shows up as text

If you look at the coding the data is stored in an array:

events = new Array(
["", "6", "2", "2006", "8:00 PM", "12:00 PM", "Samsung Red Carpet event", "Fill in whatever you want here."]


I want to put a picture link inside the quotation that says: "Fill in whatever..." and when i view the calendar want it to actually display the picture. Normal htm coding didnt work, only showed up as normal text.

How do i assign background-image of message class rule? Im a complete newbie! hehe

06-05-2006, 11:39 PM
vwphillips still there?:)

06-06-2006, 12:22 AM
back tomorrow

06-07-2006, 02:44 PM
haha k thanks =)

06-09-2006, 01:29 AM
need some desperate help guys... :confused: