Avatar billede in2designs Nybegynder
08. oktober 2003 - 02:11 Der er 2 kommentarer

Button til text

HEY EKSPERTER..

JEG HAR DENNE LILLE PHOTO FÆTTER JEG GODT KUNNE TÆNKE MIG AT SMIDE OP PÅ EN WEBISTE!

<table border="0" cellpadding="0">
  <caption><strong>Picture Gallery</strong></caption>
  <tr>
    <td width="100%"><img src="http://www.a1javascripts.com/images/Arcdetri.jpg" width="190" height="145" name="photoslider"></td>
  </tr>
  <tr>
    <td width="100%"><form method="POST" name="rotater">
      <div align="center"><center><p><script language="JavaScript1.1">
var photos=new Array()
var which=0

/*Change the below variables to reference your own images. You may have as many images in the slider as you wish*/
photos[0]="<a href="http://www.jubii.dk/">Jubii Logo</a>"
photos[1]="/Badland.jpg"
photos[2]="/Battle2.jpg"
photos[3]="/Beach.jpg"
photos[4]="/Alaska.jpg"


function backward(){
if (which>0){
window.status=''
which--
document.images.photoslider.src=photos[which]
}
}

function forward(){
if (which<photos.length-1){
which++
document.images.photoslider.src=photos[which]
}
else window.status='End of gallery'
}
</script><input type="button" value="&lt;&lt;Back" name="B2"
      onClick="backward()"> <input type="button" value="Next&gt;&gt;" name="B1"
      onClick="forward()" tabindex="1"><br>
                           
                                <br>
                                <a href="#" onClick="which=1;backward();return false"><small>Start Over</small></a></p>
      </center></div>
    </form>
    </td>
  </tr>
</table>




MIT PROBLEM ER BARE DER ER BUTTONS, OG DE SE ER SÅ FLOTTE UD SÅ JEG VILLE HØRE OM I KUNNE HJÆLPE MIG MED AT LAVE DEM OM TIL TEXT SÅ DER BARE STÅ -->

"BACK" "NEXT"

MANGE TAK FOR HJÆLPEN...
Avatar billede in2designs Nybegynder
08. oktober 2003 - 02:12 #1
Der var lige en fejl i photo!

photos[0]="/velle.jpg"
photos[1]="/Badland.jpg"
photos[2]="/Battle2.jpg"
photos[3]="/Beach.jpg"
photos[4]="/Alaska.jpg"

sådan.
Avatar billede roenving Novice
08. oktober 2003 - 02:44 #2
>>in2designs

Brug _ikke_ store bogstaver i indlæg ...

-- skrigeri er ikke hensigtsmæssigt, og det er det store bogstaver betyder !-|

Men ellers kan du prøve med:

<html>
<head>
<title>Vis billeder</title>
<style type="text/css">
.button{
text-decoration:none;
font-family:verdana,sans-serif;
font-weight:bold;
background:#3fc;
}
</style>
</head>
<body>
<table border="0" cellpadding="0">
  <caption><strong>Picture Gallery</strong></caption>
  <tr>
    <td width="100%"><img src="http://www.a1javascripts.com/images/Arcdetri.jpg" width="190" height="145" name="photoslider"></td>
  </tr>
  <tr>
    <td width="100%"><form method="POST" name="rotater">
      <div align="center"><center><p><script language="JavaScript1.1">
var photos=new Array()
var which=0

/*Change the below variables to reference your own images. You may have as many images in the slider as you wish*/
photos[0]='<a href="http://www.jubii.dk/">Jubii Logo</a>';
photos[1]="/Badland.jpg"
photos[2]="/Battle2.jpg"
photos[3]="/Beach.jpg"
photos[4]="/Alaska.jpg"



function backward(){
if (which>0){
window.status=''
which--
document.images.photoslider.src=photos[which]
}
}

function forward(){
if (which<photos.length-1){
which++
document.images.photoslider.src=photos[which]
}
else window.status='End of gallery'
}
</script>

<a href="#" onClick="backward()" class="button">&lt;&lt;Back</a>&nbsp;
<a href="#" onClick="forward()" class="button" tabindex="1">Next&gt;&gt;<br>
                           
                                <br>
                                <a href="#" onClick="which=1;backward();return false"><small>Start Over</small></a></p>
      </center></div>
    </form>
    </td>
  </tr>
</table>
</body>
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester