|
|
| Author |
Message |
atarom
Dalai Lama of RealPoor

Joined: 11 Oct 2002 Posts: 16395
Location: 375th st. Y
|
Posted: 09/27/04 - 21:19 Post subject: absolute noob at web design.
|
|
|
i want to ask you guys so i can get an answer while i'm working instead of actually grinding out an answer with google.
how do i make a link open in a seperate window?
so i want to have a thumbnail sorta thing, and then have them click it and open a larger image in a seperate window..
how do you actually do that?
|
|
|
Back to top
|
|
|
|
 |
merdocc
RealPoor Guru

Joined: 11 Oct 2002 Posts: 2038
Location: Pasadena Ca
|
Posted: 09/27/04 - 21:27 Post subject:
|
|
|
|
If you want your link to open a page in a new window use the target="_blank" in the <.a href> tag.
|
|
|
Back to top
|
|
|
|
 |
kemble
RealPoor Sensei

Joined: 14 Oct 2002 Posts: 1909
Location: MI
|
Posted: 09/27/04 - 21:32 Post subject:
|
|
|
| Code: | | <A HREF="http://www.ilikedick.com/penis.htm" target="_blank">Penis in the ear!!</A> |
|
|
|
Back to top
|
|
|
|
 |
atarom
Dalai Lama of RealPoor

Joined: 11 Oct 2002 Posts: 16395
Location: 375th st. Y
|
Posted: 09/27/04 - 21:42 Post subject:
|
|
|
|
sweet lol i'm so dumb.
|
|
|
Back to top
|
|
|
|
 |
gotissues68
RealPoor Sensei

Joined: 21 Aug 2003 Posts: 1866
|
Posted: 09/27/04 - 21:44 Post subject:
|
|
|
|
www.htmlgoodies.com is teh win. I used it as my reference when I was learning webdesign
|
|
|
Back to top
|
|
|
|
 |
atarom
Dalai Lama of RealPoor

Joined: 11 Oct 2002 Posts: 16395
Location: 375th st. Y
|
Posted: 09/27/04 - 21:45 Post subject:
|
|
|
ok so how do i get it to open a window the exact size i want?
i want it to open a seperate window with an image in it... so i'll just upload a little html file that i'm linking to, have it open in a blank window, but the image size will change from link to link... so how do i specify the size of the window?
|
|
|
Back to top
|
|
|
|
 |
Zuldane
RealPoor Guru

Joined: 11 Oct 2002 Posts: 4057
Location: At sea.
|
Posted: 09/27/04 - 21:45 Post subject:
|
|
|
<A HREF="http://www.ilikedick.com/penis.htm" target="penis">Penis in the ear!!</A>
You could even make the target = penis; which is the ideal thing to do.
|
|
|
Back to top
|
|
|
|
 |
kemble
RealPoor Sensei

Joined: 14 Oct 2002 Posts: 1909
Location: MI
|
Posted: 09/27/04 - 21:56 Post subject:
|
|
|
javascript in all likelyhood
| Code: | | <a href="home.htm" onClick="MM_callJS('window.open (\'penis.htm\', \'newWin\', \'scrollbars=yes,status=no,resizable=yes,width=500,height=700\')')"> |
|
|
|
Back to top
|
|
|
|
 |
atarom
Dalai Lama of RealPoor

Joined: 11 Oct 2002 Posts: 16395
Location: 375th st. Y
|
Posted: 09/27/04 - 21:59 Post subject:
|
|
|
that's kinda what i figured, but i had absolutely no clue how to do that.
thanks guys
|
|
|
Back to top
|
|
|
|
 |
atarom
Dalai Lama of RealPoor

Joined: 11 Oct 2002 Posts: 16395
Location: 375th st. Y
|
Posted: 09/27/04 - 22:05 Post subject:
|
|
|
erm ok i thought i used that all right...
| Code: | | <a href="http://files.frashii.com/~atarom/pill.html" onClick="MM_callJS('window.open (\'pill.html\', \'newWin\', \'scrollbars=yes,status=no,resizable=yes,width=600,height=800\')')"> |
but that doesnt seem to want to actually open a new window..
|
|
|
Back to top
|
|
|
|
 |
atarom
Dalai Lama of RealPoor

Joined: 11 Oct 2002 Posts: 16395
Location: 375th st. Y
|
Posted: 09/27/04 - 22:42 Post subject:
|
|
|
ok so i got it to work using this:
| Code: | | <a href="http://files.frashii.com/~atarom/pill.html" onClick="window.open('http://files.frashii.com/~atarom/pill.html', 'pill',config='width=780,height=540')"><img src=http://files.frashii.com/~atarom/pillthumb.jpg><small><P align=right>Click for Full Image</small></P></a> |
So here's the problem though, I dont want the mainpage to actually change where it is... with that it takes both the main page and the new window to the html file i created for the full size picture...
|
|
|
Back to top
|
|
|
|
 |
atarom
Dalai Lama of RealPoor

Joined: 11 Oct 2002 Posts: 16395
Location: 375th st. Y
|
Posted: 09/27/04 - 23:32 Post subject:
|
|
|
nevermind, i used this
because i'm smart.
only problem is that it doesnt leave them in the same spot on the main page.
that's acceptable though... everything else works.
amazing.
man i seriously havent done any of this since the 8th grade (8 years ago lol)
so i'm sorta outta the loop.
thanks for help guys. it's kinda fun getting back into it,
|
|
|
Back to top
|
|
|
|
 |
atarom
Dalai Lama of RealPoor

Joined: 11 Oct 2002 Posts: 16395
Location: 375th st. Y
|
Posted: 09/28/04 - 06:04 Post subject:
|
|
|
Ok next question:
I want my site's banner to randomly display a different one of 4 images... how do i randomize it?
|
|
|
Back to top
|
|
|
|
 |
NickPSH
RealPoor Master of Posts

Joined: 11 Oct 2002 Posts: 5680
|
Posted: 09/28/04 - 06:11 Post subject:
|
|
|
<!-- Begin
// =======================================
// set the following variables
// =======================================
// Set speed (milliseconds)
var speed = 5000
// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below
Pic[0] = 'fuckuatarom'
Pic[1] =
Pic[2] =
Pic[3] =
//
var t
var j = 0
var p = Pic.length
var preLoad = new Array()
for (i = 0; i < p; i++){
preLoad[i] = new Image()
preLoad[i].src = Pic[i]
}
function runBGSlideShow(){
if (document.body){
document.body.background = Pic[j];
j = j + 1
if (j > (p-1)) j=0
t = setTimeout('runBGSlideShow()', speed)
}
}
// End -->
</script>
|
|
|
Back to top
|
|
|
|
 |
atarom
Dalai Lama of RealPoor

Joined: 11 Oct 2002 Posts: 16395
Location: 375th st. Y
|
Posted: 09/28/04 - 06:25 Post subject:
|
|
|
no, no, i want a different banner each time the page loads...
not an animation
|
|
|
Back to top
|
|
|
|
 |
NickPSH
RealPoor Master of Posts

Joined: 11 Oct 2002 Posts: 5680
|
Posted: 09/28/04 - 06:26 Post subject:
|
|
|
| fagarom wrote: | Ok next question:
I want my site's banner to randomly display a different one of 4 images... how do i randomize it? |
YOU DID NOT SAY THAT AT THE START WHY MUST YOU TORTURE ME, I WENT THROUGH MY PORTFOLIO TO FIND THAT s***s MISTER
|
|
|
Back to top
|
|
|
|
 |
atarom
Dalai Lama of RealPoor

Joined: 11 Oct 2002 Posts: 16395
Location: 375th st. Y
|
|
|
Back to top
|
|
|
|
 |
atarom
Dalai Lama of RealPoor

Joined: 11 Oct 2002 Posts: 16395
Location: 375th st. Y
|
Posted: 09/28/04 - 06:34 Post subject:
|
|
|
|
nm found the answer again.
|
|
|
Back to top
|
|
|
|
 |
Occulis
RealPoor Jedi

Joined: 11 Oct 2002 Posts: 13293
Location: Moral Relativity Central
|
Posted: 09/28/04 - 08:33 Post subject:
|
|
|
| Code: |
<img src="file<?php print rand(1,4);?>.gif" alt="hi" />
|
|
|
|
Back to top
|
|
|
|
 |
atarom
Dalai Lama of RealPoor

Joined: 11 Oct 2002 Posts: 16395
Location: 375th st. Y
|
Posted: 09/28/04 - 14:57 Post subject:
|
|
|
oh that's easier...
i used some array thing.
|
|
|
Back to top
|
|
|
|
 |
gotissues68
RealPoor Sensei

Joined: 21 Aug 2003 Posts: 1866
|
Posted: 09/28/04 - 15:07 Post subject:
|
|
|
| Occulis wrote: | | Code: |
<img src="file<?php print rand(1,4);?>.gif" alt="hi" />
|
|
You're the shit dunn I bow to you
|
|
|
Back to top
|
|
|
|
 |
|
|