Helping the dummie to write.
Posted: Thu Jan 19, 2006 8:34 am
feyd | Please use
Everything still looks fine when I open it in my browser but there are 2 things I need deleted.
1. Next to the upload function there is a image that links to somewhere I would like to know where to find that part in the code.
2. In the upper left conrner it shows something like img352 at 209.172.60.20 I would like that to go but can't find the code for it.
I'm just a beginner so take it easy with me.
You can see how it looks like now here:
feyd | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
I got a code from some other website and am now changing things in it but I get stucked so I got 2 questions to begin with.
The code as I have it now is.Code: Select all
<html>
<head>
<title>Inner Cicle - Hosting</title>
<link rel="stylesheet" href="img/style-def.css" type="text/css">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<script type="text/javascript">
function highlight(field) {
field.focus();
field.select();
}
function phpbb(){
window.open ('phpbb.php', 'phpbb', config='height=450, width=720, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no');
}
function vb(){
window.open ('vb.php', 'vb', config='height=450, width=720, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no');
}
function sm(){
window.open ('sm.php', 'sm', config='height=450, width=720, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no');
}
function ipb(){
window.open ('ipb.php', 'ipb', config='height=450, width=720, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no');
}
function favorites(){
if(document.all)
window.external.AddFavorite(url,title)
}
function disableme (what) {
what = document.getElementById(what);
what.disabled = true;
what.value="uploading...";
}
function validateForm(theForm)
{
if (theForm.name.value=="" ||theForm.email.value=="" ||theForm.subj.value=="" ||theForm.idea.value==""||theForm.email.value.indexOf("@")==-1 || theForm.email.value.indexOf(".") == -1) {
alert("ERROR: Either you did not fill the form out to completion, or your email address is incorrect.");
return false;
}
if (theForm.corr.selectedIndex==0) {
alert("You must select a 'Reason for Email' from the drop-down box.");
return false;
}
}
var buttonname = '"Browse..."';
function showoptions(what) {
var ext = what.value.substr(what.value.length - 3,3).toLowerCase();
switch (ext) {
case 'jpg':
case 'peg':
case 'png':
case 'gif':
case 'bmp':
case 'tif':
case 'iff':
document.getElementById('resizeoptions').style.display='';
document.getElementById('filetypeerror').style.display='none';
document.getElementById('butan').disabled=false;
document.getElementById('butan').value='host it!';
break;
case 'swf':
document.getElementById('resizeoptions').style.display='none';
document.getElementById('filetypeerror').style.display='none';
document.getElementById('butan').disabled=false;
document.getElementById('butan').value='host it!';
break;
case '':
document.getElementById('butan').disabled=true;
document.getElementById('butan').value=buttonname;
default:
document.getElementById('resizeoptions').style.display='none';
document.getElementById('filetypeerror').style.display='';
document.getElementById('butan').disabled=true;
document.getElementById('butan').value='bad file type';
break;
}
}
function doload() {
what = document.getElementById('butan');
if (document.getElementById('fileupload').value == '') {
what.disabled=true;
what.value = 'select an image using ' + buttonname;
document.getElementById('resizeoptions').style.display='none';
}
document.getElementById('optsize').disabled = !document.getElementById('optimage').checked;
}
function toggleuploadmode(file) {
if (file) {
document.getElementById('upfile').style.display='block';
document.getElementById('upurl').style.display='none';
document.getElementById('upform').action='http://www.imageshack.us/index.php';
} else {
document.getElementById('upfile').style.display='none';
document.getElementById('upurl').style.display='block';
document.getElementById('upform').action='http://www.imageshack.us/transload.php';
}
}
function focusfield(fl) {
if (fl.value=="paste image url here") {
fl.value='';
fl.style.color='black';
}
}
-->
</script>
</head>
<div class="don" style="color: #ccc">img352 at 209.172.60.20</div>
<table cellpadding="5" width="760" border="1" bordercolor="#CCCCCC" class="table_decoration"
align="center"><tr>
<td valign="top"><!-- FASTCLICK.COM 300x250 Medium Rectangle CODE for imageshack.us -->
<script language="javascript" src="http://media.fastclick.net/w/get.media?sid=20143&m=6&tp=8&d=j&t=n"></script>
<noscript><a href="http://media.fastclick.net/w/click.here?sid=20143&m=6&c=1" target="_blank">
<img src="http://media.fastclick.net/w/get.media?sid=20143&m=6&tp=8&d=s&c=1"
width=300 height=250 border=1></a></noscript>
<!-- FASTCLICK.COM 300x250 Medium Rectangle CODE for imageshack.us -->
</td><td valign="top"><p>Welcome, <b>Inner Circle</b> member!</p><p>To upload an image, click "Browse...", select an
image, click OK/Open, and then click the "host it!" button. After a short while, your image will upload.
Depending on your use for the image, use any one of the provided linking codes. </p>
<img src="banmessage.png" class="para" alt="hosting" border="0" /></a>
<form method="post" action="http://imageshack.us/index.php" enctype="multipart/form-data" onsubmit="disableme('butan')" id="upform">
<table cellspacing="0" cellpadding="0" border="0"><tr>
<td><p>upload from: <input type="radio" name="uploadtype" onclick="toggleuploadmode(true);" checked> file <input type="radio"
name="uploadtype" onclick="toggleuploadmode(false);"> url</p></td>
<td width="10"> </td>
<td><div id="upfile"><input type="file" name="fileupload" size="30" onchange="showoptions(this)" id="fileupload"></div>
<div id="upurl" style="display: none"><input type="text" id="fileupload" value="paste image url here" style="color: #888;"
onfocus="focusfield(this)" name="url" size="30"></div></td>
</tr></table>
<input type="hidden" name="MAX_FILE_SIZE" value="3145728">
<input type="hidden" name="refer" value="http://www.google.nl/search?client=firefox-a&rls=org.mozilla%3Anl%3Aofficial_s&hl=nl&q=image+hosting&meta=&btnG=Google+zoeken">
<input type="hidden" name="brand" value="">
<div id="resizeoptions">
<input type="checkbox" name="optimage" id="optimage" value="1" onclick="optsize.disabled=!this.checked"> resize image?
<select name="optsize" id="optsize">
<option value="100x100" >100x75 (avatar)</option>
<option value="150x150" >150x112 (thumbnail)</option>
<option value="320x320" selected>320x240 (for websites and email)</option>
<option value="640x640" >640x480 (for message boards)</option>
<option value="800x800" >800x600 (15-inch monitor)</option>
<option value="1024x1024" >1024x768 (17-inch monitor)</option>
<option value="1280x1280" >1280x1024 (19-inch monitor)</option>
<option value="1600x1600" >1600x1200 (21-inch monitor)</option>
<option value="resample" >optimize without resizing</option>
</select>
</div>
<div>
<input type="checkbox" name="rembar" value="1" > remove size/resolution bar from thumbnail?
</div>
<div id="filetypeerror" style="display: none"> <b style="color: red;">Please select only one of the supported file types:</b><br></div>
<div><img class="para" src="img/hosty.png" alt="hosting" /></div>
</div>
</td></tr></table>
</body>
</html>1. Next to the upload function there is a image that links to somewhere I would like to know where to find that part in the code.
2. In the upper left conrner it shows something like img352 at 209.172.60.20 I would like that to go but can't find the code for it.
I'm just a beginner so take it easy with me.
You can see how it looks like now here:

feyd | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]