vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Basic HTML trouble, need some help (https://vborg.vbsupport.ru/showthread.php?t=254196)

DanTHEGREAT 11-24-2010 06:41 PM

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?

BirdOPrey5 11-25-2010 10:47 PM

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.

cincyforums 11-28-2010 04:57 PM

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.


All times are GMT. The time now is 10:40 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.02002 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete