Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 9th, 2004, 02:20 PM
TriggerHappy101 TriggerHappy101 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 141 TriggerHappy101 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 59 m 32 sec
Reputation Power: 5
Repeating image webdesign?

What I am trying to do is have a repeating image when the window to the browser window is bigger than the image interface (1000 pixels.) If and when the browser is bigger than the interface it has a repeating effect its hard to describe but if you look at this image ill try to explain:

http://hstrial-tricityhomes.homeste...nterediting.jpg

Look at the far right side where the dark green and light green merge with each other? I want that to keep repeating when the browser stretch’s bigger than the image.

Thanks 4 reading. Any help would be great.

Reply With Quote
  #2  
Old August 9th, 2004, 03:18 PM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Retired Moderator
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2004
Location: London, UK
Posts: 6,670 edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced Folder
Time spent in forums: 1 Week 6 Days 23 h 36 m 40 sec
Reputation Power: 92
If you can split the area you want to repeat into a separate cell of a table, and you've got a background image that you want to repeat horizontally, you can probably just use CSS to get the background image to repeat, with "background-repeat: repeat-y;"
__________________
- Edwin -

The General Rules Thread | The General FAQ Thread

Reply With Quote
  #3  
Old August 10th, 2004, 01:48 AM
jordonbedwell jordonbedwell is offline
Ultra Geek!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 294 jordonbedwell User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 19 sec
Reputation Power: 5
Start your favorite editor. Preferably photoshop cs (or 7 will do ) Now click on the k button (the k button is your slice tool) Hide everything in the image that you do not want to be repeated, such as the buttons that you have on the image!

Now you will make 2 slices (1 that will be on the right and one that will be on the left) you will need to judge based on your own ability to see percentage on your own. Make the image around 95% slice for the left side and 5% slice for the right, now press CTRL + ALT + Shift + S (This is save file for web) Choose GIF format, and now choose the images folder, now note this and be extremely careful, when you save a sliced image it will save a webpage and the images in an images folder so to fix this problem, you need to move one folder back from the images folder, and then choose gif only

ok now that you have the images sliced its time to teach you how to create the repeating background.

I will give this to you step by step as if i was doing this.

Open up your favorite editor (I used dreamweaver mx 2004)

create a new html document. Now create new table

make this table 100% width. Now create a cell in that table (make sure to over size it a little bit, and insert your left side of the image) now create another cell, these will be side by side note now make that cells width to 100% (do not make the left sides cell 100% because that will mess up the vibes big time) ok, now that you have done that, lets create the css to repeat the image.

You will need to do css similer to this
<style type="text/css" media="screen">
.repeat {
background-image: url(path/to/right/side/slice.gif);
background-repeat: repeat-x;
}
</style>

ok you see the background-repeat, we put repeat-x so that it doesnt repeat vertically only horizontally this creates a neater effect.

Your end result should be something like this

PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   <
html xmlns="http://www.w3.org/1999/xhtml">
   <
head>
   <
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <
meta http-equiv="imagetoolbar" content="no" />
   <
title>My Document v.1 demo!</title>
   <!-- 
This is the css you want to make this happen -->
   <
style type="text/css">
   <!--
   
/* CSS GLOBAL */
   
   /* Created By: Jordon Bedwell Of Cybercom Pros */
   
   /* This CSS is Open-Source and falls under GNU / GPL you are NOT required to give me credit though */
   
   /* This is the body tag adjustments, this is the css equivlent to <body> tag attributes */
   
body {
       
margin-left0px;
       
margin-top0px;
       
margin-right0px;
       
margin-bottom0px;
   }
   
/* Here is where we actually create the repeat remember to change your path */
   
.repeat {
       
background-imageurl(path/to/right/side/slice.gif);
       
background-repeatrepeat-x;
   }
   -->
   </
style>
   
   <!-- 
This is just a netscape fix for the resize and what notyou dont need this if you dont want it -->
   <
script language="JavaScript">
   <!--
   function 
MM_reloadPage(init) {  //reloads the window if Nav4 resized
     
if (init==truewith (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
       
document.MM_pgW=innerWidthdocument.MM_pgH=innerHeightonresize=MM_reloadPage; }}
     else if (
innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgHlocation.reload();
   }
   
MM_reloadPage(true);
   
   function 
P7_OpResizeFix(a) { //v1.1 by Project VII
   
if(!window.opera){return;}if(!document.p7oprX){
    
document.p7oprY=window.innerWidth;document.p7oprX=window.innerHeight;
    
document.onmousemove=P7_OpResizeFix;
    }else{if(
document.p7oprX){
     var 
k=document.p7oprX-window.innerHeight;
     var 
j=document.p7oprY window.innerWidth;
     if(
k>|| j>|| k<-|| j<-1){
     
document.p7oprY=window.innerWidth;document.p7oprX=window.innerHeight;
     
location.reload();}}}
   }
   
P7_OpResizeFix();
   
//-->
   
</script>
   </head>
   <body>
   
   <!-- Here is what you want right here this is exactly what your coding should look like for the tables -->
   <table width="100%" border="0" cellpadding="0" cellspacing="0">
     <tr>
     <td width="237" height="289" valign="top"><img src="path/to/left/side/image.gif" /></td>
       <td width="100%" valign="top"></td>
     </tr>
     <tr>
       <td height="0"></td>
       <td></td>
     </tr>
     <tr>
     <td height="1"><img src="path/to/spacer/image/spacer.gif" alt="" width="237" height="1" /></td>
       <td></td>
     </tr>
   </table>
   
   
   </body>
   </html> 


You can also move the class to the table which will repeat the background across the table so no matter how many cells you put in, it will still have that repeating background.








Simplified this is all you really need:

PHP Code:
<html>
 <
title>My Document v.1 demo!</title>
 <
style type="text/css">
 <!--
 
body {
     
margin-left0px;
     
margin-top0px;
     
margin-right0px;
     
margin-bottom0px;
 }
 .
repeat {
     
background-imageurl(path/to/right/side/slice.gif);
     
background-repeatrepeat-x;
 }
 -->
 </
style>
 </
head><body>
 <
table width="100%" border="0" cellpadding="0" cellspacing="0">
   <
tr>
     <
td width="237" height="289" valign="top"><img src="path/to/left/side/image.gif" /></td>
     <
td width="100%" valign="top"></td>
   </
tr>
   <
tr>
     <
td height="0"></td>
     <
td></td>
   </
tr>
   <
tr>
     <
td height="1"><img src="path/to/spacer/image/spacer.gif" alt="" width="237" height="1" /></td>
     <
td></td>
   </
tr>
 </
table>
 </
body>
 </
html

Reply With Quote
  #4  
Old August 10th, 2004, 11:54 AM
TriggerHappy101 TriggerHappy101 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 141 TriggerHappy101 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 59 m 32 sec
Reputation Power: 5
Hrmmmmmm. Okay. What do you mean by "left side" and "right side"?

Reply With Quote
  #5  
Old August 13th, 2004, 01:58 PM
TriggerHappy101 TriggerHappy101 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 141 TriggerHappy101 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 59 m 32 sec
Reputation Power: 5
??
I just mean i want it to repeat the fuzzness on the right side. I dont want to have the top nav bar center or anything....

What would be the easyest method and would work in the most browsers?

Reply With Quote
  #6  
Old August 13th, 2004, 02:57 PM
jordonbedwell jordonbedwell is offline
Ultra Geek!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 294 jordonbedwell User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 19 sec
Reputation Power: 5
Do exactly as the tutorial says, thats all it does is repeat the fuzzies, if you would follow directions you would learn.

More clarifiable, look at .repeat, thats the css to repeat your "fuzzies"

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > Repeating image webdesign?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway