Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1327872

    inkcreations
    Participant

    Hi there,

    I was wondering how to get the text on the browser tab (Name of website and description) to scroll through all the text?

    Thanks

    #1328272

    Rupok
    Member

    Hi there,

    Thanks for writing in! It’s not usually possible but you can achieve with some script. Like here is a site that generate such script – http://www.htmlbasix.com/titlebarmessage.shtml

    Cheers!

    #1329244

    inkcreations
    Participant

    Thanks for that, and where would I paste the script code? As I tried in the Global Script and CSS in the customiser with no change?

    #1329587

    Rue Nel
    Moderator

    Hello There,

    Thanks for updating in! You can insert the JS code in the customizer, Appearance > Customize > Custom > Javascript

    <!-- 
    var Message = "- This is a sample title!  -";
    
    var Leftspace = "    ";
    var Rightspace = "    ";
    
    var message1 = Leftspace + Message + Rightspace;
    var dir = "left";
    var speed = "50";
    
    function bounce(){
    
    	if (dir == "left"){
    
    		var message2 = message1.substring(2,message1.length) + "  ";
    		document.title = message2;
    		setTimeout("bounce()", speed);
    		message1 = message2;
    		if (message1.substring(0,1) == "-") dir="right";
    	}
    
    	else{
    
    		message2 = "  " + message1.substring(0,message1.length-2);
    		document.title = message2;
    		setTimeout("bounce()", speed);
    		message1 = message2;
    		if (message1.substring(message1.length-1,message1.length) == "-") dir="left";
    	}
    
    }
    
    bounce();
    // -->

    Please notice that in the code, I have removed the <Script LANGUAGE="JavaScript"> and </Script> because this is no longer necessary.

    Hope this helps.

    #1331154

    inkcreations
    Participant

    Hi thanks for the input,, I type the message into the message field and it works, but it is very fast and needs to be slowed down, I have changed the “var speed” field but doesnt seem to make much difference, all when i has stopped it just comes up with the address of the page. Also can you explain what the leftspace and right space are as Im unsure thanks

    John

    #1331158

    inkcreations
    Participant

    Sorry to add into that last comment, I am after the text to continue to stroll over and over.

    #1331500

    Rue Nel
    Moderator

    Hello Again,

    Thanks for updating in! From the looks of it, you might be having an issue with a third party script. Regretfully, we cannot provide support for third party scripts as our support policy in the sidebar states due to the fact that there is simply no way to account for all of the potential variables at play when using another developer’s script. Because of this, any questions you have regarding setup, integration, or troubleshooting any piece of functionality that is not native to X will need to be directed to the original developer.

    Thank you for your understanding.

    #1331594

    inkcreations
    Participant

    All good thanks anyways

    #1331613

    Lely
    Moderator

    You’re welcome!

    Cheers!