Codes to Share

Feel Free to Copy, Revise and Use on Your Individual Projects!

Return to The Studio Group

Special Links: How to post messages and share code.
Code Party Links - See how we play with code

Borders around text
Button with Link
Code Parties
Drop Cap - Fun with 1st letter
Getting Rid of the Yellow box on Eons Profile
Frame a picture with CSS/HTML
Iframe as menu (external HTML)
Indenting with a spacer.gif
Manager/Moderator in sticky
Marquee Code
Message Post Background
Music
Pop up Alert Message Box
Scroll box variations
Text Background - Color
Text Background - Image
Vertical Dividing Bar
View - Source to see code

CSS Code for your Profile Page - This code goes in the "Custom CSS" tab in the skinner.
   Mouseover - image or words pop-up
   Navigation Links
   Profile Banner Resize 
   Purple Lines under Section titles
   Yellow Box Code



How to Post Messages and Share Code.

First Post:  What is an easy way to write code in a post?  posted by Mimi58  October  24, 2008

Results of replies:
Here are some great suggestions to follow when you want to use or share code in a message or PM on Eons to avoid pulling your hair out when the message box does its thing. Here's a summary:

Part 1: Good Steps to Follow When Posting Messages 

Problem with message box: Links get turned into the generic 'view link' euphamism and any HTML symbols like < get stuck in a one-way translation.

So here are the steps in my solution.

1] Write your post in your favorite HMTL editor.
2] Preview on your PC
3] cut and paste to the POST input box
4] PREVIEW on Eons
5] click EDIT.... BUT
6] make any changes/corrections, etc. in your HTML editor
7] then re-cut & paste over whatever got returned in the Eons editor
8] then go straight to POST
9] this isn't a 100% solution, but it will cut some of the frustration and get you closer to the way it should be!!

Don't use HTML list items. Eons really messes them up.

From reply made by mbotos

Part 2:  Great Link to converter:

www.stanford.edu/~bsuter/js/convert.html - Link doesn't work now, see next to links

You type in the HTML markup (code). The converter will convert it to character entities (funny characters) You can then copy and paste the conversion into the message box. The message box converts back into HTML markup and posts it as HTML markup (code).

 Summary of Information from reply posted by HonestJohn

Part 2a: Enhanced Converter - Michael has taken the original converter and enchanced it!  www.botos.com/eons/convert_04.html
Second Post: Gest
One of my old webtv tools. - http://www.wtv-zone.com/phyrst/ece/encoder.html -
posted by HonestJohn about March 7, 2009

Third Post:  Posting Code in Eons Message Box - Video Tutorials on how to use the above information
posted by Mimi58 about March 11, 2009



Back To Top  -     Back to The Studio Group


Button with Link:

The button will also take you to a site where you can test code!

source code:

<form><input type="button" value="YOURTEXT" onClick="parent.location='YOUR URL'"></form>

HERE is a HTML testbed posted by   October 25, 2008


Back To Top  -     Back to The Studio Group



Borders around text:

Here is my text.

source code:

<div style="border-top: 20px solid red; border-bottom: 20px solid #fc0; border-left: 20px solid blue; border-right: 20px solid green;"><blockquote>Here is my text.</blockquote></div>

hint: Save youself some typing and just cut & paste the 'red' text above into your private message or posting.

1] Replace 'Here is my text.' with your own. The box will expand to fit your message.
2] Change the colors to your preference
3] Experiment by making the borders smaller or larger. Current value is '20px' -- 20 pixels
4] <blockquote> is an HTML tag that indents a small amount on left and right margins. You don't absolutely need it.

originally posted by   about Feb. 2008; Reposted somewhere around Oct. 2008 and played with in First Code Party!


Back To Top  -     Back to The Studio Group

Code Parties! Oh, yeah!

Code Party 01
  1. HTML & CSS Code Party 01 announcement - Pre-Party Post and Play
  2. Code Party 01 - Thursday, March 12
  3. Marquee Tags post - More playings with things introduced at Code Party 01 and Pre-Party!
Code Party 02
  1. Let's Party Again Like We Did Last Thursday - Pre-Party Post and Play
  2. Code Party 02 - Friday, March 20
Code Party 03
Code Party 04


Back To Top  -     Back to The Studio Group


CSS 'Drop Cap' example

Quoted from Post: 
"Basic code copied from www.mandarindesign.com/troops.html#alphabetblocks

Do 'view source' to see the code necessary to accomplish this. Experiment with the settings in the STYLE definition. The M example has the style keywords on separate lines to help you identify them. The 'Michael' example makes some glaring changes to be sure you notice them!"

Editor's Note:  I added the code below each example.

* * * * * * * * * * * * * * * * * * * * * * * * *

M ichael likes to play with little snippets of code. Here is a sample. I set the overall paragraph width to 400 pixels. Next I placed unique styles on the SPAN tag, to control the presentation of the character 'M', which is the first letter in my name. I could also do my entire name. [see below] Just a little more text here so that you can see how it wraps around the drop cap.


"Code:  (Be sure there are no line breaks when you paste the code into the message box or it won't turn out like expected)"

 <p style="width:400px"><br /><br /><span style="margin-right:6px;margin-top:5px;float:left;color:white;background:lightcoral;border:4px solid black;font-size:70px;line-height:60px;padding-top:2px;padding-right:5px;font-family:times;">M</span> ichael likes to play with little snippets of code. Here is a sample. I set the overall paragraph width to 400 pixels. Next I placed unique styles on the SPAN tag, to control the presentation of the character 'M', which is the first letter in my name. I could also do my entire name. [see below] Just a little more text here so that you can see how it wraps around the drop cap.</p><br /><br /><div style="clear:both;"><br /></div><br /><br />

* * * * * * * * * * * * * * * * * * * * * * * * *


Michael likes to play with little snippets of code. Here is a sample. I set the overall paragraph width to 400 pixels. Next I placed unique styles on the SPAN tag, to control the presentation of the characters 'Michael'.


Code:

<p style="width:400px"><br /><span style="margin-right:6px;margin-top:5px;float:left;color:blue;background:lightgreen;border:1px solid yellow;font-size:80px;line-height:90px;padding-top:2px;padding-right:5px;font-family:arial;">Michael</span> likes to play with little snippets of code. Here is a sample. I set the overall paragraph width to 400 pixels. Next I placed unique styles on the SPAN tag, to control the presentation of the characters 'Michael'.</p><br /><br /><div style="clear:both;"><br /></div>

Group post "CSS 'Drop Cap' example" posted by mbotos about Oct. 16, 2008


Back To Top  -     Back to The Studio Group




Getting rid of the yellow box on Eons profile page:

All of the skins that I have made have code in the Custom CSS tab to eliminate the yellow box in your profile card. For those of you who are designing your own skins, the following may be helpful:

To eliminate the yellow box in the profile snapshot enter the following code in the "Custom CSS" tab:

.yb .bt, .yb .bt div, .yb .bb, .yb .bb div { background: none; height: auto;}
.yb .i1, .yb .i2 { background: none; padding: 0; }
.yb .i3 {background: none; border: 3px inset #53371A; padding: 7px;}

Border style and color code can be changed.

The Yellow Box posted by TestofF8th   about Oct. 2, 2008

Making the yellow box transparent  and border transparent.

There has been some problems noted with simply stating - border: none  This coding should work to make the yellow box transparent and not have the borders show:

.yb .bt, .yb .bt div, .yb .bb, .yb .bb div { background: none; height: auto;}
.yb .i1, .yb .i2 { background: none; padding: 0; }
.yb .i3 {background-color: transparent; border: 3px double transparent; padding: 7px;}

For more information, see discussion in Yellow box area posted by rich64nv Nov 1, 2008


Back To Top  -     Back to The Studio Group



Frame a picture with CSS/HTML:

Group Post - Using CSS to frame a picture

Example - http://ccs.110mb.com/eons/how/rosepic.html

HTML/CSS style code used to do the example:

<div><div style="width: 316px; height: 346px; background-image: url(rose03.jpg); color: white;"><img style="width: 210px; height: 230px;" alt="" src="rose02.jpg" hspace="53" vspace="58"></div></div>

Create two pictures - one about 25% the size of the other. Change the 2 URL's to point to your pictures. Change the width and height to fit your picture.


Back To Top  -     Back to The Studio Group




Iframe as Menu (External HTML)

This is one way it can be done. Example - the menu in The Studio "announcement" sticky.

Step 1:  Make the External HTML file.  Click here to see the external menu file for The Studio.
Note: you need to limit the writing on the External page to the left side. That way it can fit into the iframe box and there won't be a bottom scroll bar. I used a table (500px) to help keep everything a certain width. You can use an HTML editor or write from scratch. Note: Eons does not link by the name of the file, but rather gives each uploaded file a number. You can't edit the HTML file without breaking the link from the iframe. So, it's best to have any file you are going link to from an iframe stored off site. I use 110mb.com to store the "Scrolling Directory" HTML file.
Step 2: Upload the external HTML page you just made.
Step 3:  Edit the HTML/CSS iframe code and place it on the web page, post or profile page. The following code was used for The Studio scroll box. Feel free to copy the code and use it, if you want. Note: this is the first code I used. 

<center><div style="width:525; height:150; clip:rect(0,404,404,0); background:#FFF;"><iframe id="stlinks" name="stlinks" src="http://ccs.110mb.com/eons/studiomenu.html" width="525" height="150" marginwidth="0" marginheight="0" frameborder="no" scrolling="yes" style="border-width:5px; border-color: maroon; background:#FFF; border-style: double;"></iframe></div></center>

- - - - - - - - - - -
Note: I changed the code about Dec. 2008. I made the iframe larger. The first iframe was in a div because other information was also in the sticky. I put the other information into the external file and didn't need to have it in a div any longer. I also did away with the border around the iframe. Here's what I use now:

<center><iframe name="stlinks" src="http://ccs.110mb.com/eons/studiomenu2.html" id="stlinks" marginwidth="0" frameborder="no" height="350" scrolling="auto" marginheight="0" width="535"></iframe></center>
- - - - - - - - - - -
Step 4: Copy and paste the revised iframe code to the place you want it to appear on your web site, Eons profile page or message post.

Note about Eons: The Eons message box editor likes code written in a nice long line. You can open a new page in Kompozer and go to the source view. Paste your code between the body tags. If there is more than one long line, then put your cursor in front of one of the extra lines. Click delete, then click the space bar. Keep doing this until there everything is in one nice line. Copy and paste this code into notepad or Textedit and save the file. Next, paste the iframe into the message box. Preview the message. THEN go back into edit. Recopy the code from Textedit or notepad. Repaste into the message box and go straight to post. Otherwise, the message box will add extra line breaks where they aren't needed.

Step 5:  Check to see that the links work and everything is like you want it!

Step 6: (Optional) Feel free to come by the Studio if it's not working and you can't figure out why - or if you want to share what you did with the group (keeping Eon's TOU's in mind, of course)

Group post:  Using an iframe as a Menu
Online reference sites:  w3schools.com



Back To Top  -     Back to The Studio Group




Indenting with a Spacer Gif

You can indent a line of writing by using a 1 x 1 transparent gif. Use code to set the width at 10px, 20px or 30px or whatever you need - and Wah Lah, Mercy Bucket - you can now indent a paragraph, a list, a quote - or whatever you fancy!

Use the HTML img tag and change the width and the URL:

<img style="width: 1px; height: 1px;" alt="" src="THE URL OF YOUR SPACER GIF" />

Examples:

Indent with Image Width Changed to 10px
Indent with Image Width Changed to 20px
Indent with Image Width Changed to 30px


Of course, Eons does things differently.

I uploaded a spacer gif to the Studio photo section which you can use. However, Eons changed the gif to a jpg and added code to change its size when it put it in the group's photo album. So, it appears to be a black box. If you upload your own spacer gif or use the one uploaded to the group photos, you will need to be sure and use the image tags and the Direct URL to the actual gif. Change the width. Don't use the embed code or the URL from the embed code. Ahh, the little workarounds to get things to work on Eons!

Indenting Lists, Paragraphs, ect. in Messages posted by  January 19, 2009


Back To Top  -     Back to The Studio Group



Manager and Moderator in an "Announcement" Sticky

New help file posted with links to various posts, ect. which give various ideas on how to do this - http://ccs.110mb.com/eons/manmod.html

Postings:
Latest: New Easy Code to put Man/Mod in Sticky  And another
Group Manager & Moderator in Sticky notes

Most Recent Code:

Here's the code showing you what to change:

<div style="width: 600px; color: #9B5E27;"><span style="float: left; padding-right: 30px; text-align: center;">Manager<br /><a href="URL TO MANAGER'S PROFILE"><img src="URL TO MANAGER'S PIC" alt="NAME pic"><br />MANAGER'S NAME</a></span><span style="float: left; padding-right: 30px; text-align: center;">Moderator<br /><a href="URL TO 1ST MOD PROFILE"><img src="URL TO 1ST MOD'S PIC" alt="NAME pic" /><br />1ST MOD NAME</a></span><span style="float: left; padding-right: 30px; text-align: center;">Moderator<br /><a href="URL TO 2ND MOD PROFILE"><img src="URL TO 2ND MOD PIC" alt="NAME pic" /><br />2ND MOD NAME</a></span><span style="float: left; text-align: center;">Moderator<br /><a href="URL OF 3RD MOD PROFILE"><img src="URL OF 3RD MOD PIC" alt="NAME pic" /><br />3RD MOD NAME</a></span></div><div style="clear: both;"></div>

Making Changes in the Code:
  1. The first URL is the link to each person's profile page.
  2. The second URL is the link to each person's SMALL picture. To get the link to their small picture:
    1. Go to the group's "About" Section
    2. Right-click on each person's picture and choose "properties"
    3. Copy the URL under "Image Properties" --> "location".  (Usually the second section of properties)
    4. Paste this URL in the img tag (Look in the above code - URL TO MANAGER'S PIC - URL TO 1ST MOD PIC, etc.)
  3. The first red Name - This is part of the alternate text that appears while the picture is loading.
  4. The second red Name - is the screen name of that person.
You can also change the color of the text.
You can change the amount of space between pictures by changing the size of the padding.

Here's an example of the code and the results:

<div style="width: 600px; color: #9B5E27;"><span style="float: left; padding-right: 30px; text-align: center;">Manager<br /><a href="http://www.eons.com/members/profile/Mimi58"><img src="http://www.eons.com/images/members/2009/3/10/3/1/31693763217683518187_75.jpeg" alt="Mimi58 pic"><br />Mimi58</a></span><span style="float: left; padding-right: 30px; text-align: center;">Moderator<br /><a href="http://www.eons.com/members/profile/Sylk"><img src="http://www.eons.com/images/members/2008/4/1/5/7/5718707021348473126255_75.jpeg" alt="Sylk pic" /><br />Sylk</a></span><span style="float: left; padding-right: 30px; text-align: center;">Moderator<br /><a href="http://www.eons.com/members/profile/HonestJohn"><img src="http://www.eons.com/images/members/2008/9/16/9/5/95749512211131706019_75.jpeg" alt="HonestJohn pic" /><br />HonestJohn</a></span><span style="float: left; text-align: center;">Moderator<br /><a href="http://www.eons.com/members/profile/698115"><img src="http://www.eons.com/images/members/2009/4/1/5/8/58603683214034698115_75.jpeg?1238630727" alt="KathyD174 pic" /><br />KathyD174</a></span></div><div style="clear: both;"></div>

Manager
Mimi58 pic
Mimi58
Moderator
Sylk pic
Sylk
Moderator
HonestJohn pic
HonestJohn
Moderator
KathyD174 pic
KathyD174


You can make changes to the code, then put it into a sticky. You can add what you want above the code or below it, or just have the code to show your manager and moderators. (Course, I prefer using an iframe. LOL)


Have Fun!

A Little History of Using Code:

This was the first way the I tried doing the Manager/Moderator:
Here's a little HTML project that can be used to put managers and moderators in an announcement sticky. Here's a link to the "how to" ccs.110mb.com/eons/ManModHTMLSticky.html

Posted by: Mimi58  10/03/2008  -  

Variation of Posting Group Manager and Moderator in Sticky notes using mbotos Drop Cap Code:

Here's the code used starting in Nov, 2008 in The Studio group. Feel free to make the changes you want to make and then use it.

<p style="width:400px"><a href="http://www.eons.com/members/profile/Mimi58"><span style="width:75px;height:75px;margin-right:6px;margin-top:5px;float:left; background-image: url(http://www.eons.com/images/members/2008/1/28/6/7/6751751021295039518187_75.jpeg); border:2px solid maroon;font-family:ariel,helvetica;color:white;font-size:10px;font-weight: bold;"><br />M<br />I<br />M<br />I</span></a> <a href="http://www.eons.com/members/profile/Sylk"><span style="width:75px;height:75px;margin-right:6px;margin-top:5px;float:left;background-image: url(http://www.eons.com/images/members/2008/4/1/5/7/5718707021348473126255_75.jpeg);border:2px solid maroon;font-family:ariel,helvetica;color:maroon;font-size:10px;font-weight:bold;"><br />S<br />Y<br />L<br />K</span></a><font color="green">Click on our pictures if you want to go to our profiles. Feel free to PM either of us. This is a wonderful group of talented people and we are honored to be a part of it!</font></p>


Back To Top  -     Back to The Studio Group



Marquee Code

Redo of information

I've redone this file to show how you can style a marquee with CSS. Also, to see how it looks, open another window and put the address to the RealTime Editor http://htmledit.squarefree.com/ in the address bar. Try the different codes below in the RealTime Editor and watch what happens when you make different choices! Just copy the code and paste into the top box of the Editor.

Marquee HTML tags:  

<marquee></marquee>

<marquee>YOUR TEXT</marquee>
 
Behavior:
The default behavior is scroll. To change the behavior, put behavior="YOUR CHOICE" in the beginning marquee tag. Replace the words, "YOUR CHOICE" with your choice of:  scroll, alternate or slide (slide doesn't work with all browsers)

Example: 

<marquee behavior="alternate">YOUR TEXT</marquee>


Direction:
The default direct is left. To change the direction, put direction="YOUR CHOICE" in the beginning marquee tag. Replace the words, "YOUR CHOICE" with your choice of:  left, right, up or down

Example: 

<marquee direction="right">YOUR TEXT</marquee>

Scrollamount:
You can change the speed of the marquee by adding - scrollamount="YOUR CHOICE" Replace the words, "YOUR CHOICE" with your choice of a number from 1 to 20 -  1 is slow; 10 is medium and 20 is fast

<marquee scrollamount="2">YOUR TEXT</marquee>

Using Direction, Behavior and Scrollamount all together:

Copy and paste the code into the RealTime Editor and watch what happens when you make changes!

<marquee behavior="alternate" direction="up" scrollamount="20">YOUR TEXT</marquee>

Scroll Delay:
Makes it appear "jumpy".
You can set the "pause" of the marquee by adding - scrolldelay="YOUR CHOICE" Replace the words, "YOUR CHOICE" with your choice of a number. Try 500 and then try 1000. Then try other numbers

<marquee scrolldelay="1000">YOUR TEXT</marquee>

Styling the marquee with CSS:

You can use HTML to do some styling, but many of the attributes won't work with all browsers. However, some of the HTML attributes can be done with CSS and will work.  You put the marquee in a container, such as a div or a paragraph and then use CSS to style it!  See the file, "Styling with CSS" to see different things you can do. But for fun, we'll have some examples here.

Adding a border:

<div style="border: blue double 5px"><marquee behavior="alternate">YOUR TEXT</marquee></div>

Adding a font color:
<div style="color: blue; border: blue double 5px"><marquee behavior="alternate">YOUR TEXT</marquee></div>

Adding a background color:

<div style="color: blue; background: #ffffcc; border: blue double 5px"><marquee behavior="alternate">YOUR TEXT</marquee></div>

Get more ideas from the "Styling with CSS" file, the Code Parties, and other places in The Studio



Back To Top  -     Back to The Studio Group




Message Post Background:

<div style="width:600px; padding: 7px 15px; border-style: dashed; border-color: red; background:#AFF;">YOUR TEXT HERE</div>

Code copied in view source from Using the sandbox you already have posted by mbotos Oct. 20, 2008


Back To Top  -     Back to The Studio Group




Music:

Codes to Link to Music:  See also  - Music Sharing - Help File

The anchor tag:

Revise the code below (Add the Direct URL of your music piece and the Name Of the Song) The visitor will be taken to a new page where the visitor's default player will play the music.
<a href="DIRECT URL">NAME OF SONG</a>

Embed Code:

You can also embed a music file into your page using HTML code. Revise the code below, then paste it into your page where you want the music console to appear. Vistors will see a music console with the appropriate controls when they view your page.

<embed name="NAME OF SONG" src="DIRECT URL" width="300" height="90" loop="false" autostart="false"></embed>

Playlist Users - Autostart Code

For those of you who use Playlist view link for your music player and want it not to be autostart then the following code can be changed to achieve that.
If your playlist code has something similar to:
...config/config_red_shuffle.xml& amp.....
Then it should be changed to:
....config/ config_noautostart_red_shuffle.xml& amp.....
Simply insert _noautostart
posted by GaryJames   Group Post  -  http://www.eons.com/groups/topic/1425142  about 8 Jan 2009


Back To Top  -     Back to The Studio Group



Opaque Headers over an Image:



Your Page Title



<div style="width:400px;height:318px;background:url(http://www.mandarindesign.com/images/monday.jpg)repeat;"><h1 style="color:white;width:100%; background:transparent;filter:alpha(opacity=50);-moz-opacity:.50;opacity:.50;font-size:42px;line-height:2em;text-align:center;">Your Page Title</h1></div>

Code from Code Party 3 posted by KathyD174 - April 2, 2009

Check out Mandarin Design for more great ideas! - http://www.mandarindesign.com
Here's a link to there Opaque Header Practice page - http://www.mandarindesign.com/2004/04/this-is-my-practice-area.html


Back To Top  -     Back to The Studio Group





Popup Alert Box Messages

The following code will cause an alert box to pop up at the top of your browser window. 

Code:

<!-- Put this script in between the </title> and </head> tags -->
<!-- NOTE! Popups will not work in your email signature -->

<script type="text/javascript">
// 2000 By Ultra-tex.net
setTimeout('pop()', 8000);
function pop() {
alert('YOUR TEXT HERE');
alert('YOUR TEXT HERE');
alert('YOUR TEXT HERE');
alert('YOUR TEXT HERE');
alert('YOUR TEXT HERE,');
alert('YOUR TEXT HERE');
}
</script>

You can set the number of alert boxes that pop up by adding (or deleting) a line that starts with the word alert. ie:
 
alert('YOUR TEXT HERE');

The example has 6 "alert" lines meaning it will have 6 alert boxes pop up one after the other. Put the words you want to show in the box where it says YOUR WORDS HERE. Then paste the code into a widget box.

Original script posted in the Playground:

<!-- Put this script in between the </title> and </head> tags -->
<!-- NOTE! Popups will not work in your email signature -->

<script type="text/javascript">
// 2000 By Ultra-tex.net
setTimeout('pop()', 8000);
function pop() {
alert('HEY! ROSEART do you see this?');
alert('HAY ROSE, here is another one');
alert('YOU CAN CLICK THE REDX');
alert('or click ok');
alert('or the title bar,');
alert('I\'m going to go away now, BYe BYe');
}
</script>

 
posted by HonestJohn   Group Post in the Playground  -  http://www.eons.com/groups/topic/1539723-popup-script  about 20 March 2009


Back To Top  -     Back to The Studio Group





Scroll box

You can place the code on a web page, profile, widget, etc. These codes create a scroll box that will open another web page inside the scroll box. If there is writing only in the top left of the referenced web page, then the scroll box will only scroll that section. You will need to replace the words in red, "URL of Page to be inside box", with the URL of the page you want seen inside the box. You can also change the width, height, border, etc. of the scroll box itself by changing the attributes in the code. Have fun!

Note: To make the links of the target page open a full window rather than inside the scroll box, then add - target="_parent" - to all of the links on the target HTML page.
Example:  <a href="http://ccs.110mb.com/eons/StudioLinks.html" target="_parent">The Studio Index</a>


1.  Original mbotos code:

<!-- position:absolute; left:77; top:77; --><br /><br /></p><br /><br /><div style="width:400; height:400; clip:rect(0,404,404,0); background:#FFF;"><br /><br /> <iframe src="URL of Page to be inside box" width="400" height="400" marginwidth="0" marginheight="0" frameborder="no" scrolling="yes" style="border-width:2px; border-color:#333; background:#FFF; border-style:solid;"><br /></iframe> <br /><br /></div>


2.  Code for "Interesting People" - The first section of this code is the title above the scroll box:

<div style="text-align: center; color: rgb(0, 0, 102); font-style: italic;"><big>Interesting People</big></div><center><!-- position:absolute; left:77; top:77; --><div style="width:280; height:200; clip:rect(0,404,404,0); background: #FFF;"><iframe id="favpeeps" name="favpeeps" src="URL of Page to be inside box" width="280" height="200" marginwidth="0" marginheight="0" frameborder="no" scrolling="yes" style="border-width:2px; border-color: maroon; background:#FFF; border-style: dotted;"></iframe></div></center>

3.  Sticky Announcement Scroll Box

<!-- position:absolute; left:77; top:77; --><div style="width:525; height:150; clip:rect(0,404,404,0); background:#FFF;"><iframe id="stlinks" name="stlinks" src="http://ccs.110mb.com/eons/studiomenu.html" width="525" height="150" marginwidth="0" marginheight="0" frameborder="no" scrolling="yes" style="border-width:5px; border-color: maroon; background:#FFF; border-style: double;"></iframe></div>You can also <a href="http://ccs.110mb.com/eons/studiomenu.html">Click Here</a> to go to the full menu</div>

      If you want to have a menu in your sticky, profile page or web site, feel free to use the above code and the HTML file "studio.menu" as a template if you want. Just go to the full studio.menu  - http://ccs.110mb.com/eons/studiomenu.html - and view and/or save source. You will need to change the URL link (in red) in the scroll box code to link it to the menu file you made. Using Komposer or another HTML editor will make it easier to change in the information in the table, but that's your choice.  Remember to add - target="_parent" - to all of the links on the target HTML page!


Back To Top  -     Back to The Studio Group


Text Background - Color Background

You can put a colored background behind text on a web page, post or pm.

<span style="background-color: yellow;">WHAT YOU WANT HIGHLIGHTED</span>


Course you can change the color of the background to be a different color.

<span style="background-color: lightgreen;">WHAT YOU WANT HIGHLIGHTED</span>

You can make a whole paragraph with a colored background. That is if you have enough to say to fill a paragraph!

<p style="background-color: yellow;">WHAT YOU WANT HIGHLIGHTED</p>

I wonder? What would could you do with this and mbotos's Drop Cap code?


Combined with text background color:

M
imi58


- - - - - - - -
Code used to combine mbotos's Drop Cap code and background color:

<p style="width:300px"><br /><br /><span style="margin-right:6px;margin-top:5px;float:left;color:white;background:lightcoral;border:4px solid black;font-size:70px;line-height:60px;padding-top:2px;padding-right:5px;font-family:times;">M</span><br /><span style="color: white;background-color: lightcoral;font-size:40px;">imi58</span></p><br /><br /><div style="clear:both;"><br /></div>

Text with color background  posted by Mimi58   Oct. 20, 2008


Back To Top  -     Back to The Studio Group



Text Background - Image Background

Putting a color background behind any text might have been fun. What about putting an image behind the text? Now that might be even more fun! You can put an image behind text on a web page, post or pm.  Note: It may take a minute for images to load!

The basic code for having a background image behind text is:

<span style="background-image: url(http://www.eons.com/images/members/2008/10/11/8/6/86867732216997518187.jpg); color: white;">YOUR TEXT GOES HERE</span>

And will look like this:

YOUR TEXT GOES HERE

You can add code to change the size of the text, add a border, specify the size of the "box" itself, and more. I'm working on a help file to help explain some of the code you can add. Until then, copy and paste some of the examples in the HTML generator at http://htmledit.squarefree.com/ (Renee told me about it in a PM and is supposed to post the info for the group!)  Make some changes and see what happens. Copy the code when you have it like you want it. That ought to be fun!

Beginning of Examples

Look! New Members! Run!

<div><big><big><span style="background-image: url(http://www.eons.com/images/members/2008/10/11/8/6/86867732216997518187.jpg); color: white;">Look! New Members! Run!</span></big></big><br></div>





Members Name


<div style="width: 231px; height: 51px; background-image: url(http://www.eons.com/images/members/2008/10/17/3/1/31586242217119518187.jpg); color: rgb(0, 0, 102);"><br><br><div style="text-align: right; font-weight: bold; font-style: italic; color: rgb(255,153,255);"><big><big>Members Name </big></big></div></div>



Happy Halloween

<div style="background-image: url(http://i259.photobucket.com/albums/hh299/C3C34/Halloween/th2wbsrqg.gif);"><div style="text-align: center; font-weight: bold;"><big><big><big><big><big><span style="color: rgb(255, 102, 0);">Happy Halloween</span></big></big></big></big></big></div></div>

Text with image background  posted by Mimi58   Oct. 23, 2008




 
 
 
Glad you joined,   
New Member!   

<center><div style="width:330px; height:234px; background-image: url(http://www.eons.com/images/members/2008/12/1/2/6/26484182212172518187.jpg);"><div style="text-align: right; font-weight: bold; font-style: italic;"><big><big><big><span style="color: #ffff33;"><br>&nbsp;<br>&nbsp;<br>&nbsp;<br>Glad you joined,&nbsp;&nbsp;&nbsp;<br />New Member!&nbsp;&nbsp;&nbsp;</span></big></big></big></div></div></center>



It's great to have you
in The Studio!


<center><div style="width:400px; border: 10px double; border-color: red; background-image: url(http://www.eons.com/images/members/2008/12/1/5/3/53344182212350518187.jpg);"><div style="text-align: center; font-weight: bold; font-style: italic;"><big><big><big><span style="color: #ffffff;">It's great to have you<br>in The Studio!</span></big></big></big></div></div></center>





Back To Top  -     Back to The Studio Group

Vertical Dividing Bar

You can use an image (2px by 2px) to make a dividing bar between text. The image used in this code is in The Studio photo files. Fill free to take any of the code, revise what you want (font, sizes, colors, etc.) and then use it!

Here's an example of a vertical dividing bar between text.

You can have writing on the left with what ever you want. I'm putting a lot of text here to show how it will wrap to the next line. Then you put in the dividerThen you can have writing on the other side. More text just to see what happens. Who said you can't do something just because there's not actual code for what you want to do? What do you think?



Code to have a vertical dividing bar between text:
<div style="width:500px"><span style="width:200px;margin-right:10px; margin-left:10px; float:left; font-family:ariel,helvetica;color:maroon;font-size:10px;font-weight:bold;">You can have writing on the left with what ever you want. I'm putting a lot of text here to show how it will wrap to the next line. Then you put in the divider</span><span style="width:2px; height:75px; margin-right:6px; margin-left:6px; float:left; background-image:url(http://www.eons.com/images/members/2009/1/1/8/6/86993803216305518187.gif);"><span style="width:200px; margin-right:10px; margin-left:10px; float:left; font-family:ariel,helvetica;color:maroon;font-size:10px; font-weight:bold;">Then you can have writing on the other side. More text just to see what happens. Who said you can't do something just because there's not actual code for what you want to do? What do you think?</span></span></div><br /><br /><div style="clear:both;"><br /></div>

Want to have a bigger dividing bar? 

You can have writing on the left with what ever you want. I'm putting a lot of text here to show how it will wrap to the next line. Then you put in the dividerThen you can have writing on the other side. More text just to see what happens. Who said you can't do something just because there's not actual code for what you want to do? What do you think?



Just change the width in the code (marked in red). Code used:

<div style="width:500px"><span style="width:200px; margin-right:10px; margin-left:10px; float:left; font-family:ariel,helvetica;color:maroon; font-size:10px;font-weight:bold;">You can have writing on the left with whatever you want. I'm putting a lot of text here to show how it will wrap to the next line. Then you put in the divider</span><span style="width:4px; height:75px; margin-right:6px; margin-left:6px; float:left; background-image:url(http://www.eons.com/images/members/2009/1/1/8/6/86993803216305518187.gif);"><span style="width:200px; margin-right:10px; margin-left:10px; float:left; font-family:ariel,helvetica;color:maroon; font-size:10px;font-weight:bold;">Then you can have writing on the other side. More text just to see what happens. Who said you can't do something just because there's not actual code for what you want to do? What do you think?</span></span></div><br /><br /><div style="clear:both;"><br /></div>

Want more than two columns?

Here's the first column with some informationThis is writing in the middle column.Third Column. You can find the code that was used in the "codes to share file"




Code used:
<div style="width:550px"><span style="width:100px; margin-right:10px; margin-left:10px; float:left; font-family:ariel,helvetica;color:maroon;font-size:10px; font-weight:bold;">Here's the first column with some information</span><span style="width:2px; height:75px; margin-right:10px; margin-left:10px; float:left; background-image:url(http://www.eons.com/images/members/2009/1/1/8/6/86993803216305518187.gif);"><span style="width:100px; margin-right:10px; margin-left:10px; float:left; font-family:ariel,helvetica;color:maroon;font-size:10px; font-weight:bold;">This is writing in the middle column.</span></span><span style="width:2px;height:75px; margin-right:10px; margin-left:110px; float:left; background-image:url(http://www.eons.com/images/members/2009/1/1/8/6/86993803216305518187.gif);"><span style="width:100px; margin-right:10px; margin-left:10px; float:left; font-family:ariel,helvetica;color:maroon; font-size:10px; font-weight:bold;">Third Column. You can find the code that was used in the "codes to share file"</span></span></div><br /><br /><div style="clear:both;"><br /></div>

If you have ideas of how to make it better or have any questions, just post in The Studio!


Back To Top  -     Back to The Studio Group




View Source Code:  Seeing what others are doing

Tip: If you want to know how someone did something on any web page, you can use your browser to view their source code. The process will be similar for each browser.

With Firefox, go to View --> Page Source. Then you can use Edit --> Find to search for keywords. A pop-up window will open with the source code. Then the mystery of how they did it will be revealed.


Back To Top  -     Back to The Studio Group


Use in Eons Custom CSS box

Mouseover (image or words) | Navigation Links | Profile Banner Resize | Getting rid of Purple Lines | "Yellow Box" code

Mouseover - Image or words pop up:

Actually part of this goes in the CSS box and part goes where you want the popup to occur.  It's best to copy the css code just as it is unless you really know what you are doing. (2 examples) You can make changes to the HTML code (3 examples)

This goes into the custom css box in the skinner. It's best not to change this unless you really know what you are doing - just copy and paste everything as it is:

/* MOUSE OVER picture support in About Me section */
/*Credits: Dynamic Drive CSS Library and mbotos*/
/*URL: http://www.dynamicdrive.com/style/ */

.thumbnail{
position: relative;
z-index: 0;
}

.thumbnail:hover{
background: transparent;
color: inherit;
/* z-index: 50;  conflict with missing position on validation*/
}
/*CSS for enlarged image*/
.thumbnail span{
position: absolute;
background: #FFFF66;
padding: 5px;
left: -1000px;
border: 2px solid #90EE90;
visibility: hidden;
color: black;
text-decoration: none;
}
/*CSS for enlarged image*/
.thumbnail span img{ 
border-width: 0;
padding: 2px;
}
/*CSS for enlarged image on hover*/
.thumbnail:hover span{ 
visibility: visible;
top: -50px; /* compromise value. Firefox display at bottom of image, IE7 at top */
left: 30px; /*position where enlarged image should offset horizontally */
}


The following are two examples of using the css code above. There are things you can change in this - such as putting in a direct URL - LOL. It goes where you want the popup to occur.

Used on mbotos profile page In "more about me" - Activities section (Direct link to the image has been removed):

<p align="center"><a href="#thumb" class="thumbnail"><img src="USE DIRECT URL TO YOUR IMAGE" border="0" alt="" width="200" height="150"><span><br>Water droplets on a blade of grass.</span></a></p>

Used by Mimi58 on profile page during March, 2009 - Activities section (Direct links left in - images stored on Eons)

<p><font color="green">Hover your mouse over the leprechaun if you would like to see some CSS Magic!.</font></p><a class="thumbnail" href="#thumb"><img src="http://www.eons.com/images/members/2009/2/27/1/0/10025753216575518187.gif" width="100px" height="94px" border="0" align="middle"><font color="green"><b>Leprechaun Magic with CSS!</b></font><span style="max-width:none"><img src="http://www.eons.com/images/members/2009/2/27/0/3/03265753213933518187.jpg" style="max-width:none"></span></a><p><font color="green">If you would like to learn how this is done - drop by <a href="http://www.eons.com/groups/group/the-studio----having-fun-with-css-and-html">The Studio</a>.</p><center><p> We'd love to share our little secrets!</font></p></center>

This next set is the code used by Silas in a widget box on his profile page. The css code is pretty much the same as that used by mobots. He used the same image, however, and used HTML tags to control the width and height of the image showing in the widget box when the page loads.

This is the code to put in the custom css box in the skinner. It is best to copy and paste the code just as it is unless you really know what you are doing.

/* Pop-up Picture Viewer */
.thumbnail{
position: relative;
z-index: 0;
}

.thumbnail:hover{
background-color: transparent;
z-index: 50;
}

.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: lightyellow;
padding: 5px;
left: -1000px;
border: 1px dashed gray;
visibility: hidden;
color: black;
text-decoration: none;
}

.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
}

.thumbnail:hover span{ /*CSS for enlarged image on hover*/
visibility: visible;
top: 0;
left: 60px; /*position where enlarged image should offset horizontally */

}

HTML code used by Silas in the widget box, left hand column, of profile page showing a 2006 Dodge Challenger. Note: He used the same image, but controlled the size of the image that appeared when the page loaded by using HTML tags for width and height (in blue). The links to the image have been removed.

<a class="thumbnail" href="#thumb"><img src="PUT DIRECT LINK TO IMAGE HERE" width="230px" height="123px" border="0"><span style="max-width:none"><img src="PUT DIRECT LINK TO IMAGE HERE" style="max-width:none"><br>2008 Dodge Challenger.</span></a>

Now you have some examples. Have some fun playing with what you can do!

Navigation Links - To style the top and bottom navigation links beyond what you can do in the skinner, revise the following code of your choice and paste it in the css box in the skinner:

Profile Banner Resize

Purple Lines under Section Titles (Get rid of)  Group post - Those pesky lines on a dark background

Put the following code in the custom css box:      .header {border-bottom: 0px}

You can also cover up those annoying purple lines by adding a bottom border only to the Section Title Border. (rich64nv)

skinner purple lines

"Yellow Box"

1.  Posting: The Yellow Box

All of the skins that I have made have code in the Custom CSS tab to eliminate the yellow box in your profile card. For those of you who are designing your own skins, the following may be helpful:

To eliminate the yellow box in the profile snapshot enter the following code in the "Custom CSS" tab:

.yb .bt, .yb .bt div, .yb .bb, .yb .bb div { background: none; height: auto;}
.yb .i1, .yb .i2 { background: none; padding: 0; }
.yb .i3 {background: none; border: 3px inset #53371A; padding: 7px;}

Border style and color code can be changed.

Posted by: TestofF8th  10/01/2008
See Also:  Tallbob's Blog and comments below it  About Feb/March 2008

2.  Making the yellow box transparent  and border transparent.

There have been some problems noted with simply stating - border: none. IE will cause the information in the little box to overflow into the groups.  This coding should work to make the yellow box transparent and not have the borders show:

.yb .bt, .yb .bt div, .yb .bb, .yb .bb div { background: none; height: auto;}
.yb .i1, .yb .i2 { background: none; padding: 0; }
.yb .i3 {background-color: transparent; border: 3px double transparent; padding: 7px;}

For more information, see discussion in Yellow box area posted by rich64nv Nov 1, 2008

3.  If you really know what your doing, check out mbotos' profile or check out this post.


Back To Top  -     Back to The Studio Group


Note about Use:

     Please join in the fun! We encourage folks to experiment, learn, share and have fun doing it. Use the information and links to learn more about HTML and CSS, jazz up your Eons profile and/or group home page or your own web page. We are here to help individuals have fun with CSS and HTML, so dive right in and play! If you have questions about how to do something or need more explanation, please don't hesitate to ask.
     



Back To Top  -     Back to The Studio Group