• If you would like to get your account Verified, read this thread
  • Check out Tickling.com - the most innovative tickling site of the year.
  • The TMF is sponsored by Clips4sale - By supporting them, you're supporting us.
  • >>> If you cannot get into your account email me at [email protected] <<<
    Don't forget to include your username

HTML help?

reflexology414

1st Level Red Feather
Joined
Sep 12, 2001
Messages
1,070
Points
0
I just wondered if there are any HTML gurus in here. I'm working on a site and hit a minor snag regarding link colors. If anyone is game to discuss this, I'd welcome the chance to chat.
 
If you have a more complex question (with CSS styling, for instance) ask away as well. I can't chat personally, due to IM taking all my concentration to use, but I or probably Mini HDS there will be happy to help you if you ask here.
 
Thanks

Thanks for the replies. I'm trying to keep my site simple, and if possible, I'd like to avoid using CSS. It's a very basic site, but the problem I'm having is that there are text links set against backgrounds of varying colors (green, tan, and white). There is no single color scheme that will work for all of the links on the page. I'll welcome any feedback.
 
If you want to have distinct groups of links then CSS is your friend; it is by far the easiest way to set up what you seek. CSS "classes" allow you to set the style for a link (or any other element).

How were you looking to style them? Did you want the color the link becomes when you hover your mouse over it to be different for each? Do you want the color the link changes to when clicked to be different for each? CSS is the only real way to do that. If you just wanted to give the links a single color (with no change on mouseover or click) then you can do that inline or (easier) with CSS.
 
...

Thanks for responding again so quickly. Ironically enough, I'm not trying to do anything too elaborate. I'd be happy if the text merely changed color after it was clicked... and of course, I need a color scheme that will be appropriate given the background color the text appears on. A hover state could be nice, but it's not a must.

One person suggested that I might want to think about putting the links near the bottom of the page in the white space (if you look at the image I shared in my earlier post you'll see the area I'm talking about.

I'll welcome any further thoughts that you or others will have about this. Thanks.
 
Just take the code I gave you, go to a website that has HEX codes (Color codes) and copy in the right color you'd like for your scheme.
 
Jo's suggestion is probably easiest, then. If you want to be complicated I can show you how to set link effects. I'd say stick with simple if that's all you need. I prefer fancy myself, but I am used to writing such.
 
...

Thanks again. Will that code keep the text the same color whether or not it's been clicked on, or will I need to define colors for visited links, active links, and so forth?
 
You need to use CSS and div tags.

Give each div a different id (all divs on the page should have unique id's). Then you can use the pseudoclass selector for links to specify different properties for links in different divs.

Consider a basic site with a header, a left sidebar, a main content area and a footer. You can use internal style sheets, rather than external style sheets if you prefer.

In this way, you can set width, height, background colour, colour, font size, font family, link properties etc. for each div indepedently.

You can use the float property to make the divs come together, and a wrapper with auto margins to centre this in your browser window.

I would recommend learning CSS and aiming to create tableless sites using XHTML and CSS.

I am a novice at this too, but I find it easy to pick up. I would use something like Lynda.com, Dreamweaver support forums and WC3 Schools to get a good grounding in web design.


Code:
<html>
<head>
<style type="text/css">
<!--
body {
background-color: #FFF;
color: #333;
font-family: verdana;
}
#wrapper {
width: 400px;
margin-right: auto;
margin-left: auto;
padding:0;
margin-top:0;
margin-bottom:0;
}
#header {
width: 400px;
float:left;
height:50px;
background-color: #ccc;
padding:0;
margin:0;
}
#header a:link {
	color: GREEN;
	text-decoration: none;
}
#header a:visited {
	text-decoration: none;
	color: GREEN;
}
#header a:hover {
	text-decoration: underline;
	color: GREEN;
}
#header a:active {
	text-decoration: none;
	color: GREEN;
}
#leftSidebar {
width: 100px;
float:left;
height:250px;
background-color: red;
padding:0;
margin:0;
}
#mainContent {
width: 300px;
float:left;
height:250px;
background-color: yellow;
padding:0;
margin:0;
}
#mainContent a:link {
	color: blue;
	text-decoration: none;
}
#mainContent a:visited {
	text-decoration: none;
	color: blue;
}
#mainContent a:hover {
	text-decoration: underline;
	color: blue;
}
#mainContent a:active {
	text-decoration: none;
	color: blue;
}
#mainContent p {
margin:10px;
}
}
#header p {
margin:10px;
}
#footer {
width: 400px;
float:left;
height:50px;
background-color: blue;
padding:0;
margin:0;
}
#footer a:link {
	color: #fff;
	text-decoration: none;
}
}
#footer a:visited {
	text-decoration: none;
	color: #fff;
-->
</style>
</head> 
<body>
<div id="wrapper">
<div id="header"><p>Go to the <a href="http://www.google.com">GOOGLE</a> website</p></div>
<div id="leftSidebar"></div>
<div id="mainContent"><p>SERPS for "TMF" search on<a href="http://www.google.co.uk/search?hl=en&rlz=1T4GZEZ_en-GBGB252GB252&q=tmf&meta="> GOOGLE</a></p></div>
<div id="footer"><a href="http://www.google.com">GOOGLE</a></div>
</div>
</body>
</html>
 
Last edited:
In another thread you talked about wanting to improve the ranking of your website. I would recommend AGAINST using the suggestion from jo.

It is considered best practice to separate design from content. Jo suggests an inline style elemebt. This is messy.

By using external style sheets, (or even style sheets in your head tag) your pages are cleaner, load more quickly, can be updated more readily and will be more attractive to search engines and the like.

If you plan to keep websites in the future, you may as well get to grips with CSS and xHTML now before it starts to get really complicated,

Thanks again. Will that code keep the text the same color whether or not it's been clicked on, or will I need to define colors for visited links, active links, and so forth?
 
Thanks

I'd love to see the code for what you did. Thanks for that.

Where does HTML stand? Is straight HTML still viable? And how different is XHTML?
 
I'd love to see the code for what you did. Thanks for that.

Where does HTML stand? Is straight HTML still viable? And how different is XHTML?

Its a good question. I presume HTML is still viable, but their are different tags and elements wih xHTML. I'm still not an expert myself tbh.

Consider the code for what I did - i will replace <> with ()

HTML tag

(html)
(/html)

inside the HTML tag, we place the head and body tags

(html)

(head)
(/head)

(body)
(/body)

(/html)

Keepting things simple, we'll not place and document type declaration in the head tag, nor will we add meta-tags in this example. Instead, we will add an internal style sheet using CSS.

CSS is simple. You have a selector (e.g. body) a property (e.g. background-color) and a value (e.g. red).

(html)

(head)
(style type="text/css")

body {
color: #333;
background-color: #FFFFFF;
}

()

(/head)

(body)
(/body)

(/html)

Next we'll add some div tags. In this case we want a wrapper, a header, a sidebar, a content and a footer. We'll place these in the body of the document.

(body)

(div id="wrapper")
(div id="header")(/div)
(div id="sidebar")(/div)
(div id="content")(/div)
(div id="footer")(/div)
(/div)

(/body)

we've given them id's that will relate to the CSS style sheet in the head tag.

it's simply a case of styling each div tag using css. For example: -

#wrapper {
margin:auto;
width:500px;
background-color:#fff
color:#666;
}

#header {
width:100%;
margin:0;
padding:0;
height:50pc;
background-color:red;
}

etc. etc.

and then we place this code inside the head tag with the rest

(html)

(head)
(style type="text/css")

body {
color: #333;
background-color: #FFFFFF;
}

#wrapper {
margin:auto;
width:500px;
background-color:#fff
color:#666;
}

#header {
width:100%;
margin:0;
padding:0;
height:50pc;
background-color:red;
}



(/head)

(body)

(div id="wrapper")
(div id="header")(/div)
(div id="sidebar")(/div)
(div id="content")(/div)
(div id="footer")(/div)
(/div)

(/body)


(/html)
 
HTML and XHTML are nearly identical. XHTML uses nearly all tags HTML does. However, some tags and attributes of other tags are verboten and should not be used. If you know HTML you very nearly know XHTML. Regular HTML is still valid and will still work in all browsers. In the future, however, it's use will be discouraged in favor of XHTML.
 
In General, coding seems reasonable simple and very logical.

However, it is also very, very time consuming.

Once you have an understanding of one code, the others can follow. For example, I have recently been reading about XML and how to use XML for RSS feeds and dynamic data on a HTML website. It's really quite simple to get to grip with: -

(?xml version="1.0" encoding...)
(rss version="2.0")
(channel>
(title>Reflexology Blog</title>
(link>http://www.abc.dom</link>
(description>This is a blog about reflexology techniques. Please visit my blog for more information</description>
(item>
(title>New Reflexology Technique</title>
<link>http://www.abc.som</link>
(description>My new technique tickles like buggery. And yes, apparently gay men are often remarking on how ticklish a cock up the bum is</description>
(/item>
(/channel>
(/rss)
 
XML is a useful and increasingly necessary tool. If you ever plan on doing pages with a significant amount of dynamic, asynchronous communication, look into JSON as a means of passing data around. It is frequently used for the ever-present AJAX-enabled pages (including those that use libraries like jquery and mootools) that update themselves dynamically.

Hard to keep up with it all, really. Invest in Javascript knowledge if you can; it will serve your development needs well as the transition from static to dynamic becomes inevitable.
 
XML is a useful and increasingly necessary tool. If you ever plan on doing pages with a significant amount of dynamic, asynchronous communication, look into JSON as a means of passing data around. It is frequently used for the ever-present AJAX-enabled pages (including those that use libraries like jquery and mootools) that update themselves dynamically.

Hard to keep up with it all, really. Invest in Javascript knowledge if you can; it will serve your development needs well as the transition from static to dynamic becomes inevitable.

javascript is next on my list of topics to learn 🙂

there is too much for one babyshambles to learn by himself 🙂

one day though? hey?

out of interest, has the TMF ever thought of setting up an RSS feed? Needless to say, the feed could also update users of new advertisers with the tmf - which might be another revenue stream??

imagine a service whereby tmfers sign up to an rss feed for new videos.

then further imagine video producers signing up with the tmf to promote their latest videos.

mix in some general information about the tickling community and you have a useful feed.

You have 80,000 members, but only a fraction of them come to your site every day. If you get some of these people on an RSS feed then you might be able to engage these people more, get them coming back to the site more often, oh and perhaps aid as an SEO tool in some way?
 
Personally, I've never understood the appeal of RSS. I'd rather visit the website. 😀 vBulletin does support feeds, however. I turned them on (as they don't cause any performance hit we'd notice) and you should be able to use them now.

Visit http://www.ticklingforum.com/external.php to get a feed of all forums. Add &forumids=id,id2,id3,etc to the end of the url to get a feed of specific forums. So, for instance, here we subscribe to clips:
http://www.ticklingforum.com/external.php?type=rss&forumids=7

And here we subscribe to TK and Gen Discussion:
http://www.ticklingforum.com/external.php?type=rss&forumids=58,4

There are other options, such as viewing an XML feed instead of an RSS feed. Visit the vBulletin manual page to explore them.
 
What's New

1/10/2025
See some Spam? The report button is on the lower left of thr post. We appreciate your help in finding it all!
Door 44
Tickle Experiment
Live Camgirls!
Live Camgirls
Streaming Videos
Pic of the Week
Pic of the Week
Congratulations to
*** brad1701 ***
The winner of our weekly Trivia, held every Sunday night at 11PM EST in our Chat Room
Back
Top