Skocz do zawartości
  • 0

zmiana skryptu


driada
 Udostępnij

Pytanie

Witam mam problem. otrzymałem od kolegi skrypt ale chciałbym dodać rubryke TYTUŁ oraz rubryke FullInfo. wiecie taki generator postów robię podobny do generatora z exsite. rubrykę potrafię zrobić ale nie wiem jak połączyć ją z generuj by tekst sie przetworzył. pokaże oco mi chodzi na foto

 

to mój kod:

<script type="text/javascript"> 
         function doStuff() 
         { 
         var txt = ""; 
         document.getElementById("gen").value = ""; 
          
         if (document.getElementById("boxart").value != ""){ 
         txt = "[center][img]"; 
         txt += document.getElementById("boxart").value; 
         txt += "[/img][/center]\n\n"; 
         document.getElementById("gen1").value += txt; 
         } 
        if (document.getElementById("boxart").value != ""){ 
         txt = "[center][img]"; 
         txt += document.getElementById("boxart").value; 
         txt += "[/img][/center]\n\n"; 
         document.getElementById("gen").value += txt; 
         }
          

         if (document.getElementById("info").value != ""){ 
         txt = ""; 
         txt += "[center][img=http://www.fototube.pl/pictures/inf46oeff0000ffffff352129yelloew0062.gif]\n"; 
         txt += document.getElementById("info").value; 
         txt += "[/center]\n\n"; 
         document.getElementById("gen1").value += txt; 
         } 

        if (document.getElementById("info").value != ""){ 
         txt = ""; 
         txt += "[center][img=http://www.fototube.pl/pictures/inf46oeff0000ffffff352129yelloew0062.gif]\n"; 
         txt += "[quote]";
         txt += document.getElementById("info").value; 
         txt += "[/quote][/center]\n\n"; 
         document.getElementById("gen").value += txt; 
         } 

         if (document.getElementById("sshot1").value != ""){ 
         txt = ""; 
         txt += "[center][img=http://www.fototube.pl/pictures/screeny2.gif]\n"; 
         txt += "[img]"; 
         txt += document.getElementById("sshot1").value; 
         txt += "[/img][/center]\n\n"; 
         document.getElementById("gen").value += txt; 
         } 
          
         if (document.getElementById("sshot2").value != ""){ 
         txt = ""; 
         txt += "[center][img]"; 
         txt += document.getElementById("sshot2").value; 
         txt += "[/img][/center]\n\n"; 
         document.getElementById("gen").value += txt; 
         } 
          
          
         if (document.getElementById("sshot3").value != ""){ 
         txt = ""; 
         txt += "[center][img]"; 
         txt += document.getElementById("sshot3").value; 
         txt += "[/img][/center]\n\n"; 
         document.getElementById("gen").value += txt; 
         } 
          
          
         if (document.getElementById("sshot4").value != ""){ 
         txt = ""; 
         txt += "[center][img]"; 
         txt += document.getElementById("sshot4").value; 
         txt += "[/img][/center]\n\n"; 
         document.getElementById("gen").value += txt; 
         } 
          
          
         if (document.getElementById("sshot5").value != ""){ 
         txt = ""; 
         txt += "[center][img]"; 
         txt += document.getElementById("sshot5").value; 
         txt += "[/img][/center]\n\n"; 
         document.getElementById("gen").value += txt; 
         } 
          
          
         document.getElementById("gen").value += "\n"; 
         if (document.getElementById("downlinks").value != ""){ 
         txt = ""; 
         txt += "[center][img=http://www.fototube.pl/pictures/linki.gif]\n"; 
         txt += "[hide][code]"; 
         txt += document.getElementById("downlinks").value; 
         txt += "[/code][/hide][/center]\n\n"; 
         document.getElementById("gen").value += txt; 
         } 
          
        if (document.getElementById("haslo").value != ""){ 
         txt = ""; 
         txt += "[center][img=http://www.fototube.pl/pictures/pass.gif]\n"; 
         txt += "[hide][code]";
         txt += document.getElementById("haslo").value; 
         txt += "[/code][/hide][/center]\n\n"; 
         document.getElementById("gen").value += txt; 
         }    
        
        
        
         } 
      </script>   <br />
<table width="100%" border="0">
    <tbody>
        <tr>
        </tr>
    </tbody>
</table>
<table width="100%">
    <tbody>
        <tr>
            <td class="news" style="padding-bottom:10px;" bgcolor="#FFFFFF"><br />
            <form name="frm" action="postgen.html#">
                <center>
                <table border="0" width="95%">
                    <tbody>
                        <tr>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>
                        <tr>
                            <td width="14%"><b>Okładka:(link)</b></td>
                            <td width="86%"><input id="boxart" value="" maxlength="200" size="65" type="text" class="f_input4" /></td>
                        </tr>
                        <tr>
                            <td><b>Info/Opis:</b></td>
                            <td><textarea id="info" cols="49" rows="10" class="f_input2"></textarea></td>
                        </tr>
                        <tr>
                            <td><b>Zdjęcia / Screeny:(link/link)</b><!--|-->td&gt;</td>
                            <td><input id="sshot1" maxlength="200" size="65" type="text" class="f_input4" /><br />
                            <input id="sshot2" maxlength="200" size="65" type="text" class="f_input4" /><br />
                            <input id="sshot3" maxlength="200" size="65" type="text" class="f_input4" /><br />
                            <input id="sshot4" maxlength="200" size="65" type="text" class="f_input4" /><br />
                            <input id="sshot5" maxlength="200" size="65" type="text" class="f_input4" /><br />
                            <input id="sshot6" maxlength="200" size="65" type="text" class="f_input4" /><br />
                            <input id="sshot7" maxlength="200" size="65" type="text" class="f_input4" /></td>
                        </tr>
                        <tr>
                            <td><b>Linki:</b></td>
                            <td><textarea id="downlinks" cols="49" rows="10" class="f_input2"></textarea></td>
                        </tr>
                        <tr>
                            <td><b>Hasło:</b></td>
                            <td><input id="haslo" value="" maxlength="60" size="65" type="text" class="f_input4" /></td>
                        </tr>
                        <tr>
                        </tr>
                        <tr>
                        </tr>
                        <tr>
                            <td colspan="2"><center><br />
                            <input onClick="doStuff()" value="Generuj" type="button" class="bbcodes" /> <input type="reset" class="bbcodes" /><br />
                            </center></td>
                        </tr>
                        <tr>
                            <td colspan="2"><br />
                            <center><b>Kr&oacute;tka treść:</b></center></td>
                        </tr>
                        <tr>
                            <td colspan="2"><center><textarea id="gen1" cols="64" rows="10" class="f_input3"></textarea></center></td>
                        </tr>
                        <tr>
                            <td colspan="2"><center><b>Pełna treść:</b></center></td>
                        </tr>
                        <tr>
                            <td colspan="2"><center><textarea id="gen" cols="64" rows="10" class="f_input3"></textarea></center></td>
                        </tr>
                    </tbody>
                </table>
                </center>
            </form>
            </td>
        </tr>
    </tbody>
</table>

a chodzi by to wyglądało tak;

 

 Chciałbym by skrypt działał według wzoru z tej strony Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!

proszę o pomoc

Odnośnik do komentarza
Udostępnij na innych stronach

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0

Temat został przeniesiony z Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść! > Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść! do Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść! > Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!.

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...