How to make a photo smaller?
using vbscript
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > General Web-programming > using vbscript 28 May 2008 20:47:09

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

using vbscript

Guest 28 May 2008 20:47:09
 looking for assist in using vbscript within the html code. Simply trying to
make a pic visible or not based on a date.

If, then, else.

David
Add comment
Thomas A. Rowe 28 May 2008 00:17:27 permanent link ]
 VBScript is only supported in IE browsers under Windows if used as replacement for JavaScript in
HTML pages, otherwise you will need to use ASP, so that the VBScript is processed server-side before
being rendered in a browser.

--
===================­====================­=======
Thomas A. Rowe
Microsoft MVP - FrontPage
http://www.Ecom-Dat­a.com
===================­====================­=======


"116" <116@discussions.mi­crosoft.com> wrote in message
news:4842B96D-55A5-­48F9-A140-E33BDAEDCE­33@microsoft.com...
looking for assist in using vbscript within the html code. Simply trying to
make a pic visible or not based on a date.
If, then, else.
David


Add comment
Jon Spivey 28 May 2008 20:47:09 permanent link ]
 Unless you're only targetting IE - ie on an intranet Javascript would be a
better choice as it's supported on all browsers. Unfortunately javascript's
date handling isn't as nice as VB Script but to get you started say you want
to show the picture only during the month of May something like this

<div style="display:none­" id="yourPic">
...your pic.....
</div>
<script type="text/javascri­pt">
var d = new Date();
if(d.getMonth()+1 == 5)document.getEleme­ntById("yourPic").st­yle.display='';
// May is month 5 - don't forget to add 1 to d.getMonth() as it's zero
based - Jan is month 0
</script>

If you need to a search for javascript date should help you modify the above
to get what you want.

Cheers,
Jon


"116" <116@discussions.mi­crosoft.com> wrote in message
news:4842B96D-55A5-­48F9-A140-E33BDAEDCE­33@microsoft.com...
looking for assist in using vbscript within the html code. Simply trying
to
make a pic visible or not based on a date.
If, then, else.
David


Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > General Web-programming > using vbscript 28 May 2008 20:47:09

see also:
[JBoss Seam] - Migration to seam…
[JBoss Seam] - Re: @Begin doesn't work…
[JBoss Portal] - Blank Screen on Log In
пройди тесты:
see also:
Learn While You Sleep
BlueScreen Screen Saver v3.2
I thought that USB was a...

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .