![]() |
free flash templates
![]() ![]() |
|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
myButton('HOME','_home.htm'); I´m supposed to change the name of the button and then how can I link a page to open on a different one?
myButton('BEBE','www.sample/bebe.htm'); <--------is this the way to do it??? ![]() |
#2
|
|||
|
|||
![]()
You can open main.js and insert these lines at begining of showContent function (line 9) :
if (contentString.indexOf("http") != -1) { location.href=contentString; return true; }
__________________
We are always pleased to read you in our guestbook |
#3
|
|||
|
|||
![]()
the script look like this:
<script type="text/javascript"> myButton('HOME','_home.htm'); myButton('ABOUT','_about.htm'); myButton('MY PORTFOLIO','1','_about.htm'); myButton('NEWS','_news.htm'); myButton('CONTACT US','_contact.htm'); </script> th buttons first and last will stay and work as ther are made for, but the second third and forth buttons will be looking like this and the will need to go to a different page. myButton('HOME','_home.htm'); THIS ONE REMAINS myButton('GALERIA','_about.htm'); THIS ONE GOES TO http://www.cabotroopers.com/galeria/index.php myButton(MIEMBROS','_about.htm'); THIS ONE GOES TO http://www.cabotroopers.com/miembros/index.php myButton('FORO','_news.htm'); THIS ONE GOES TO http://www.cabotroopers.com/foro/index.php myButton('CONTACT US','_contact.htm'); AND THIS ONE REMAIN THE SAME I will really appreciate your help us out, I will study much more from now on sorry about my bad english as well |
#4
|
|||
|
|||
![]()
Do exactly what i tell you in my last post and everything should work as you expect to.
__________________
We are always pleased to read you in our guestbook |
#5
|
|||
|
|||
![]()
I inserted the lines as you tolded me and now the home page doesn´t work what can I do??? The lines in red are the ones I inserted at the begining of line 9
jQuery(document).ready(function(){ hideContent = function(contentString){ jQuery("div.dynamicContent").fadeOut( 1000 ,function() { showContent(contentString);playSound(0); }); }; if (contentString.indexOf("http") != -1) { location.href=contentString; return true; } showContent = function (contentString) { jQuery.ajax({ type: "GET", url: contentString, dataType:"html", success: function(data){ jQuery("div.dynamicContent").html(data); jQuery("div.dynamicContent").slideDown(1000); }, error: function () { alert("Page "+contentString+" not found"); |
#6
|
|||
|
|||
![]()
Change :
if (contentString.indexOf("http") != -1) { location.href=contentString; return true; } showContent = function (contentString) { jQuery.ajax({ type: "GET", url: contentString, dataType:"html", success: function(data){ jQuery("div.dynamicContent").html(data); jQuery("div.dynamicContent").slideDown(1000); }, error: function () { alert("Page "+contentString+" not found"); by: showContent = function (contentString) { if (contentString.indexOf("http") != -1) { location.href=contentString; return true; } jQuery.ajax({ ......
__________________
We are always pleased to read you in our guestbook |
![]() |
|
|