Webmaster Key - Discussion Forums


Welcome, Guest. Please login or register.
Did you miss your activation email?
February 09, 2012, 11:15:59 AM

Login with username, password and session length
Welceome to Forums!

Important information for guests and new members:

In order to understand the full benefits of becoming an active member of this forum, please review the following information on guest and new member restrictions. These forum changes have been prompted by an overwhelming and unreasonable amount of bot postings and incoherent guest spam messages. We wish to prevent these events from happening in the future and make our community a more comfortable place for all of our members.

For guests:

Guests are not allowed to open new topics, polls, or posts attachments.
If you wish to open up new discussions on this forum, we encourage you to register.

For new members:

New members with less than five posts are not allowed to modify additional profile information such as avatars, contact information, biographies, and signatures. However, new members are encouraged to post their own topics or reply to topics initiated by other members. Become active on the forums and 5 posts should be an easy task!

We are a diverse community with members from all over the world. We encourage new ideas and interesting conversation. Do not be afraid to post webmaster/computer-related questions or problems, as our active members are always willing to help when they are able. Interested? Join us.

+ Webmaster Key Forums
|-+ Webmaster Corner
| |-+ Site Design and Web Authoring
| | |-+ Coding Talk
| | | |-+ Vbscript rotating script
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print
Author Topic: Vbscript rotating script  (Read 2096 times)
stu
Key Keeper
Member
**
Posts: 83



WWW
« on: June 15, 2008, 09:09:00 AM »

Hi

Sorry i havnt been on for a bit i have been really busy lately.

i am after a script but dont know were to start or if it can be done. i have given a brief out line of what i want it to do and if somebody would be so kind to help i would appreciate it.

my girlfriend wants me to build her a website with all her friends and her art work on it. but she wants the home page to have a different featured artist every month. i dont really want the hastel of changing this every month as i have to much work on at the moment between computer work and uni work. i am pretty desprate now for this script if any could help please please do.

This is going to be a completely free website for young up coming artist to display there work. as she has found that it is so hard to get people to see there work so we are trying to build a website to display the portfolios for them. if any would like to have there work on here please contact me for details and i will get theres included.

on the home page i want to have

todays featured artist is    Mr O Y Bother (this needs to be a clickable link)

                              img 1     img2      img 3     img4

each week or month the script needs to change the featured artist, heres how i assume the script should ish be


if   month 1
response.write=" <p>Todays freatured artist is:  <a href="mydomain.com">My o y bother</a> <br /><br /><img src="images/img1.jpg> <img src="img2.jpg"><img src="images/img3.jpg> <img src="img4.jpg"></p>

if month 2
response.write // this would be the next featured artist


well thats what i want it to do. if somebody could help please do.



 i have managed to do a basic outline with this script by braking it down to basics, i have tried to use the month now function to rotate every month heres is the script i have so far

<%@ Language=VBScript %>
<% Option Explicit
'Declare Variables
Dim strGreeting, artist
'assign greeting to strGreeting
strGreeting = "This months featured artist is:"

' assign which month it is to the artist to be displayed

if artist  = Month(Now()= 1 ) then
Response.Write ("This is january")
Elseif artist  = Month(Now()= 2 ) then
Response.Write ("this is febuary")
Elseif artist  = Month(Now()= 3 ) then
Response.Write ("this is march")
Elseif artist  = Month(Now()= 4 ) then
Response.Write ("this is april")
Elseif artist  = Month(Now()= 5 ) then
Response.Write ("this is may")
Elseif artist  = Month(Now()= 6 ) then
Response.Write ("this is june")
Elseif artist  = Month(Now()= 7 ) then
Response.Write ("this is jully")
Elseif artist  = Month(Now()= 8 ) then
Response.Write ("this is august")
Elseif artist  = Month(Now()= 9 ) then
Response.Write ("this is september")
Elseif artist  = Month(Now()= 10 )then
Response.Write ("this is october")
Elseif artist  = Month(Now()= 11 ) then
Response.Write ("this is november")
Elseif artist  = Month(Now()= 12 ) then
Response.Write ("this is december")
End if

%>
<html>
<head>
<title>rotation script</title>
</head>
<body>
<h2><% =strGreeting %></h2><br />
<% =artist %>
</body>
</html>

when i try to this script its not coming up with an error but its  not displaying the content for what month it is, any one got any ideas please. i have used the basic this is January just to keep the code simple but thats were i will put the html code for the links and images for the artist.


thanks

stuart
Report to moderator   Logged

Andy
Administrator
Veteran
*****
Posts: 5 752



« Reply #1 on: June 24, 2008, 01:45:49 PM »

Quote
i dont really want the hassle of changing this every month as i have to much work on at the moment

If you love your girlfriend, you would find the time  Wink

Sorry I can't help with VB.

I imagine that you want to set up a database of artists and cycle through them on a month by month basis. Also, you need code to pull the data from the database and insert it into the html.

To go further you could data mine the information from sites.

So, it is a significant project and maybe easier to edit the web page each month or hire someone to do it for you. Just write a written procedure of what they need to do. Then pay them $10 a month to perform the procedure. You can maybe find them on elance.com
Report to moderator   Logged

Pages: [1] Go Up Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print 
+ Webmaster Key Forums
|-+ Webmaster Corner
| |-+ Site Design and Web Authoring
| | |-+ Coding Talk
| | | |-+ Vbscript rotating script

Jump to:  
« previous next »


Our Partners
RelmaxTOP Ranking System Web Hosting RelmaxTOP Ranking System
Staff Sites
12Noon[12Noon Gallery] Andy[Urgentclick]
Tamuril[Tamuril's Digital Art Exhibit] Sensovision
Powered by MySQL Powered by PHP We are hosted by Relmax Inc. |Our Privacy Policy | Sitemap
Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC
Forum design by Tamuril © 2005.
Valid XHTML 1.0! Valid CSS!