Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-24-2010, 06:41 PM
DanTHEGREAT's Avatar
DanTHEGREAT DanTHEGREAT is offline
 
Join Date: Oct 2008
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Basic HTML trouble, need some help

This is my current website, starting out with HTML (from scratch)

Just wanted to do a basic one take a look:
http://cplusplus.netai.net/

I currently have two buttons,

Home and Lessons

I want so that when the user the Lessons, it goes to a different page (lessons.php)
and I want different text but the same header. (I know I just have to copy header and make new text file) but is there a way where I can make and If statement like this:

If user clicks Lessons, Then
Go to Lessons.php.

Also!
how can I make it so that the text in the middle on the homepage has a box around it, sort of like a middle background.

And finally last question. Take a look at my Hovering button codes, how come they do not work when I go to the real website??
Code:
<center><a href="http://cplusplus.netai.net/" onmouseover="document.images['s1a'].src='http://cplusplus.netai.net/button1hover.png';" onmouseout="document.images['s1a'].src='http://cplusplus.netai.net/button1.png';"><img src="http://cplusplus.netai.net/button1hover.png" name="s1a" height="47" width="176" alt="" border="0"></a><a href="http://cplusplus.netai.net/" onmouseover="document.images['s1a'].src='http://cplusplus.netai.net/button2hover.png';" onmouseout="document.images['s1a'].src='http://cplusplus.netai.net/button2.png';"><img src="http://cplusplus.netai.net/button2hover.png" name="s1a" height="47" width="176" alt="" border="0"></a></center>
Thanks, would appreciate the help!

--------------- Added [DATE]1290648027[/DATE] at [TIME]1290648027[/TIME] ---------------

anyone??

--------------- Added [DATE]1290689876[/DATE] at [TIME]1290689876[/TIME] ---------------

bump? Anyone?
Reply With Quote
  #2  
Old 11-25-2010, 10:47 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know why you'd need an "IF" statement... first HTML is not a scripting language, there are no "IF" statements- that would be JavaScript or PHP.

If you want to bring someone to lesson.php when they click on the lesson image you'd put an <a href="..."> tag around the <img> tag of the lesson... something like:
<a href="lesson.php"><img src="lesson.gif" border="0" /></a>

This is very most basic of basic HTML- if you don't know this you really need to get a book or something and learn the basics before you start asking questions.
Reply With Quote
  #3  
Old 11-28-2010, 04:57 PM
cincyforums cincyforums is offline
 
Join Date: Nov 2010
Location: Cincinnati, Ohio
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can use the div tags to create a box around certain text that you want to stand out from the rest of the home page.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:35 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03917 seconds
  • Memory Usage 2,182KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete