I just spend a whole class period looking for something that was right in photoshop. Mo challenged me to put a pop-up window in my website for when someone clicked on the picture of my fake digital yearbook. I searched google trying to find a code that didn't need javascript and I couldn't find one. Just as I was giving up, I realized what the boxes in slice options meant. This is my understanding of them:
Name > that's just the slice name. You should name it something other than "slice 35" so that you can keep track of them without getting confused. This way, if you need to edit one of them, you don't need to try and figure out which slice went with which image. You can just Ctr. F and search the source for the name like "yearbook".
URL > this is where you put the url of where you want the slice to link to. On a source page, it will look like href="http://www.whatever.com"
Target > this is what saved my life. In Target you put the frame where you want the link to load into. For a pop-up window, new window.
Message Text > Whatever you type in will appear in the browser status bar.
The Alt Tag is the alternate text for the browser in case the image can't show up.
To access these Slice Options, just right click a slice using the slice tool.
Monday, June 11, 2012
Friday, June 8, 2012
Wednesday, June 6, 2012
Tuesday, June 5, 2012
Thursday, May 31, 2012
Monday, May 21, 2012
Progress Update #523
This page is almost done I think. I wish I could make it easier to look at but there is so much information on a high school web-page. I'll keep working on it.
Friday, May 18, 2012
Thursday, May 17, 2012
Tuesday, May 8, 2012
Progress Update 2 (Regress)
Today I was having trouble figuring out what to do next for my High School website. I decided not to post a picture of it because it looks worse than it did yesterday and it's pretty embarrassing. Hopefully I'll have better luck tomorrow and I'll finish before the end of the school year.
P.S. thank you Mo for telling me what regress meant.
P.S. thank you Mo for telling me what regress meant.
Monday, May 7, 2012
Friday, May 4, 2012
Friday, April 20, 2012
Wednesday, April 18, 2012
Widget Website
This is my widget website with a header, footer, menu bar, and a bunch of other stuff. It's supposed to be a website for a store that's kind of like a Modell's except it is located in Mahopac and sells a lot of Mahopac Indian themed things.
Tuesday, April 17, 2012
Stuff I did in the 3rd Quarter
These are some more things that I used photoshop to make this quarter:
![]() |
English Project |
![]() |
Advertisement/Thanks for Christa at Raymond Opticians |
![]() |
Helping the Spanish Club with March Madness |
Tuesday, April 10, 2012
Pop-Up Windows
I've been trying to figure out how to put pop-up windows on a website so that when you click a link a new window will come up. So far I still haven't been able to figure out how to set the size of the window. This is as much of the code that I have:
<a target="Here" href="H:\Widget Website\pop up.htm">
Go</a></b></font><br>
<iframe name="I1" marginwidth="1" height="0" scrolling="no" align="center" border="0" frameborder="0" src="H:\Widget Website\pop up.htm" width="0">
<a target="Here" href="H:\Widget Website\pop up.htm">
Go</a></b></font><br>
<iframe name="I1" marginwidth="1" height="0" scrolling="no" align="center" border="0" frameborder="0" src="H:\Widget Website\pop up.htm" width="0">
You should only need to change the things in red.
Monday, March 26, 2012
Hit Counter
Another thing that I think is cool to put on a website is a hit counter. A hit counter is just something that keeps track of how many views a website gets. It's pretty useless on my website since the only person that can see it is me, but if I had a real website on the Internet I think that I'd want to know if a lot of people were looking at it. So if you want to know how many times you refresh the page while working on your website, check out this link: http://www.simplehitcounter.com/
Here you can choose the color of the counter and stuff like that.
This is the one I used:
<center><!-- Start of SimpleHitCounter Code -->
<div align="center"><a href="http://www.simplehitcounter.com" target="_blank"><img src="http://simplehitcounter.com/hit.php?uid=1186624&f=16777215&b=16711680" border="0" height="18" width="83" alt="web counter"></a><br><a target="_blank" style="text-decoration:none;"></a></div>
<!-- End of SimpleHitCounter Code --></center>
(I added the center tags so the counter would be in the middle of my webpage.)
Here you can choose the color of the counter and stuff like that.
This is the one I used:
<center><!-- Start of SimpleHitCounter Code -->
<div align="center"><a href="http://www.simplehitcounter.com" target="_blank"><img src="http://simplehitcounter.com/hit.php?uid=1186624&f=16777215&b=16711680" border="0" height="18" width="83" alt="web counter"></a><br><a target="_blank" style="text-decoration:none;"></a></div>
<!-- End of SimpleHitCounter Code --></center>
(I added the center tags so the counter would be in the middle of my webpage.)
Friday, March 23, 2012
Rotating Images
I've been working on putting rotating images on my website. Rotating images doesn't mean that pictures spin around. Rotating images are a set of images that are shown one after the other in succession in a set location of a website.This is the code I have so far:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<center>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Widget</title>
<link href="styles-index.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["Image 1.jpg", "*", "*"]
fadeimages[1]=["Image 2.jpg", "*", "*"]
fadeimages[2]=["Image 3.jpg", "*", "*"]
fadeimages[3]=["Image 4.jpg", "*", "*"]
fadeimages[4]=["Image 5.jpg", "*", "*"]
fadeimages[5]=["Image 6.jpg", "*", "*"]
//var fadebgcolor="#79001C"
var fadebgcolor="#000000"
////NO need to edit beyond here/////////////
var fadearray=new Array() //array to cache fadeshow instances
var fadeclear=new Array() //array to cache corresponding clearinterval pointers
var dom=(document.getElementById) //modern dom browsers
var iebrowser=document.all
function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder){
this.pausecheck=pause
this.mouseovercheck=0
this.delay=delay
this.degree=10 //initial opacity degree (10%)
this.curimageindex=0
this.nextimageindex=1
fadearray[fadearray.length]=this
this.slideshowid=fadearray.length-1
this.canvasbase="canvas"+this.slideshowid
this.curcanvas=this.canvasbase+"_0"
if (typeof displayorder!="undefined")
theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)
this.theimages=theimages
this.imageborder=parseInt(borderwidth)
this.postimages=new Array() //preload images
for (p=0;p<theimages.length;p++){
this.postimages[p]=new Image()
this.postimages[p].src=theimages[p][0]
}
if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)
document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div></div>')
else
document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>')
if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox
this.startit()
else{
this.curimageindex++
setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay)
}
}
function fadepic(obj){
if (obj.degree<100){
obj.degree+=10
if (obj.tempobj.filters&&obj.tempobj.filters[0]){
if (typeof obj.tempobj.filters[0].opacity=="number") //if IE6+
obj.tempobj.filters[0].opacity=obj.degree
else //else if IE5.5-
obj.tempobj.style.filter="alpha(opacity="+obj.degree+")"
}
else if (obj.tempobj.style.MozOpacity)
obj.tempobj.style.MozOpacity=obj.degree/101
else if (obj.tempobj.style.KhtmlOpacity)
obj.tempobj.style.KhtmlOpacity=obj.degree/100
else if (obj.tempobj.style.opacity&&!obj.tempobj.filters)
obj.tempobj.style.opacity=obj.degree/101
}
else{
clearInterval(fadeclear[obj.slideshowid])
obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"
obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)
obj.populateslide(obj.tempobj, obj.nextimageindex)
obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0
setTimeout("fadearray["+obj.slideshowid+"].rotateimage()", obj.delay)
}
}
fadeshow.prototype.populateslide=function(picobj, picindex){
var slideHTML=""
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML+='</a>'
picobj.innerHTML=slideHTML
}
fadeshow.prototype.rotateimage=function(){
if (this.pausecheck==1) //if pause onMouseover enabled, cache object
var cacheobj=this
if (this.mouseovercheck==1)
setTimeout(function(){cacheobj.rotateimage()}, 100)
else if (iebrowser&&dom||dom){
this.resetit()
var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
crossobj.style.zIndex++
fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50)
this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"
}
else{
var ns4imgobj=document.images['defaultslide'+this.slideshowid]
ns4imgobj.src=this.postimages[this.curimageindex].src
}
this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0
}
fadeshow.prototype.resetit=function(){
this.degree=10
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
if (crossobj.filters&&crossobj.filters[0]){
if (typeof crossobj.filters[0].opacity=="number") //if IE6+
crossobj.filters(0).opacity=this.degree
else //else if IE5.5-
crossobj.style.filter="alpha(opacity="+this.degree+")"
}
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=this.degree/101
else if (crossobj.style.KhtmlOpacity)
crossobj.style.KhtmlOpacity=this.degree/100
else if (crossobj.style.opacity&&!crossobj.filters)
crossobj.style.opacity=this.degree/101
}
fadeshow.prototype.startit=function(){
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
this.populateslide(crossobj, this.curimageindex)
if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE ONMOUSEOVER
var cacheobj=this
var crossobjcontainer=iebrowser? iebrowser["master"+this.slideshowid] : document.getElementById("master"+this.slideshowid)
crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}
crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}
}
this.rotateimage()
}
</script>
</head>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<center>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Widget</title>
<link href="styles-index.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["Image 1.jpg", "*", "*"]
fadeimages[1]=["Image 2.jpg", "*", "*"]
fadeimages[2]=["Image 3.jpg", "*", "*"]
fadeimages[3]=["Image 4.jpg", "*", "*"]
fadeimages[4]=["Image 5.jpg", "*", "*"]
fadeimages[5]=["Image 6.jpg", "*", "*"]
(*This is where you put the dimensions for your images. To make it work I needed to put in the dimensions that the photographs actually were. I used photoshop to change the image sizes so that they'd all be the same [500x375], but I think it might work better if the images you find are already the same size so that none of them look distorted.)
//var fadebgcolor="#79001C"
var fadebgcolor="#000000"
////NO need to edit beyond here/////////////
var fadearray=new Array() //array to cache fadeshow instances
var fadeclear=new Array() //array to cache corresponding clearinterval pointers
var dom=(document.getElementById) //modern dom browsers
var iebrowser=document.all
function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder){
this.pausecheck=pause
this.mouseovercheck=0
this.delay=delay
this.degree=10 //initial opacity degree (10%)
this.curimageindex=0
this.nextimageindex=1
fadearray[fadearray.length]=this
this.slideshowid=fadearray.length-1
this.canvasbase="canvas"+this.slideshowid
this.curcanvas=this.canvasbase+"_0"
if (typeof displayorder!="undefined")
theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)
this.theimages=theimages
this.imageborder=parseInt(borderwidth)
this.postimages=new Array() //preload images
for (p=0;p<theimages.length;p++){
this.postimages[p]=new Image()
this.postimages[p].src=theimages[p][0]
}
if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)
document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div></div>')
else
document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>')
if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox
this.startit()
else{
this.curimageindex++
setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay)
}
}
function fadepic(obj){
if (obj.degree<100){
obj.degree+=10
if (obj.tempobj.filters&&obj.tempobj.filters[0]){
if (typeof obj.tempobj.filters[0].opacity=="number") //if IE6+
obj.tempobj.filters[0].opacity=obj.degree
else //else if IE5.5-
obj.tempobj.style.filter="alpha(opacity="+obj.degree+")"
}
else if (obj.tempobj.style.MozOpacity)
obj.tempobj.style.MozOpacity=obj.degree/101
else if (obj.tempobj.style.KhtmlOpacity)
obj.tempobj.style.KhtmlOpacity=obj.degree/100
else if (obj.tempobj.style.opacity&&!obj.tempobj.filters)
obj.tempobj.style.opacity=obj.degree/101
}
else{
clearInterval(fadeclear[obj.slideshowid])
obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"
obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)
obj.populateslide(obj.tempobj, obj.nextimageindex)
obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0
setTimeout("fadearray["+obj.slideshowid+"].rotateimage()", obj.delay)
}
}
fadeshow.prototype.populateslide=function(picobj, picindex){
var slideHTML=""
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML+='</a>'
picobj.innerHTML=slideHTML
}
fadeshow.prototype.rotateimage=function(){
if (this.pausecheck==1) //if pause onMouseover enabled, cache object
var cacheobj=this
if (this.mouseovercheck==1)
setTimeout(function(){cacheobj.rotateimage()}, 100)
else if (iebrowser&&dom||dom){
this.resetit()
var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
crossobj.style.zIndex++
fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50)
this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"
}
else{
var ns4imgobj=document.images['defaultslide'+this.slideshowid]
ns4imgobj.src=this.postimages[this.curimageindex].src
}
this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0
}
fadeshow.prototype.resetit=function(){
this.degree=10
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
if (crossobj.filters&&crossobj.filters[0]){
if (typeof crossobj.filters[0].opacity=="number") //if IE6+
crossobj.filters(0).opacity=this.degree
else //else if IE5.5-
crossobj.style.filter="alpha(opacity="+this.degree+")"
}
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=this.degree/101
else if (crossobj.style.KhtmlOpacity)
crossobj.style.KhtmlOpacity=this.degree/100
else if (crossobj.style.opacity&&!crossobj.filters)
crossobj.style.opacity=this.degree/101
}
fadeshow.prototype.startit=function(){
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
this.populateslide(crossobj, this.curimageindex)
if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE ONMOUSEOVER
var cacheobj=this
var crossobjcontainer=iebrowser? iebrowser["master"+this.slideshowid] : document.getElementById("master"+this.slideshowid)
crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}
crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}
}
this.rotateimage()
}
</script>
</head>
Monday, March 5, 2012
Thursday, March 1, 2012
Tuesday, February 28, 2012
Illusion Poster So Far
So far I've been focusing on the text part of the poster because I think that is a very important part of a cool looking poster. And I'm still brainstorming about the poster so I thought a text effect was a good thing to do first.
Thursday, January 12, 2012
Subscribe to:
Posts (Atom)