#chatbot-container { position: fixed; bottom: 20px; right: 20px; width: 300px; height: 400px; border: 1px solid #ccc; border-radius: 5px; overflow: hidden; } #chatbot-messages { height: 85%; padding: 10px; overflow-y: scroll; } #user-input { width: 100%; padding: 10px; border: none; border-top: 1px solid #ccc; outline: none; } document.addEventListener("DOMContentLoaded", function() { const chatbotContainer = document.getElementById("chatbot-container"); const chatbotMessages = document.getElementById("chatbot-messages"); const userInput = document.getElementById("user-input"); function addMessage(message, isUser) { const messageElement = document.createElement("div"); messageElement.classList.add("message"); messageElement.classList.add(isUser ? "user" : "bot"); messageElement.textContent = message; chatbotMessages.appendChild(messageElement); chatbotMessages.scrollTop = chatbotMessages.scrollHeight; } function askAssistance() { addMessage("Do you need any assistance?", false); } function askCashOffer() { addMessage("Would you like a cash offer on your house?", false); } function handleUserInput() { const userMessage = userInput.value.trim(); userInput.value = ""; if (userMessage.toLowerCase() === "yes") { addMessage("Great! Please visit our How it Works page to complete the form.", false); // Redirect the user to the How it Works page window.location.href = "https://yourwebsite.com/how-it-works"; } else if (userMessage.toLowerCase() === "no") { addMessage("We are standing by to help answer any questions. Feel free to ask!", false); setTimeout(askAssistance, 30000); } else { addMessage("Sorry, I didn't understand. Can you please clarify?", false); } } userInput.addEventListener("keydown", function(event) { if (event.key === "Enter") { handleUserInput(); } }); askAssistance(); });

Attention: Home Owners!!!

FREE House Value Report - Enter Your Details Below - No Obligation!

Selling Your Home

Find out what your house

is Worth in Today's market!

No Obligation ~ House Value Report

Enter your first and last name*

Property address, including city state and zip code*

Enter your email address*

Enter your phone number*

By checking the box above, I allow you to send me SMS/Text/Email Messages

Save Time,

Save Money!

Using Our House

Buying Services.

Not quite ready to find your House Value? Click below to learn more

Image Free Report 5 Easy Steps to get Your House Sold Fast | Imperial House Partners | We Buy Houses in California
Imperial House Partners | No Low Ball Offers Guarantee
Imperial House Partners | Frederic Din | We Buy Houses in California | Speed Convenience Dignity
Imperial House Partners | No Obligation Fast Cash Offer

© 2024 FD REI, LLC dba ImperialHousePartners


As a principal, Frederic Din holds a California Real Estate license affiliated with Axia Real Estate Group, Inc.

This site or service is not part of or endorsed by Facebook, Google, or any social media platform in any way.

FACEBOOK is a trademark of META PLATFORMS, Inc. and GOOGLE and YOUTUBE are trademarks of ALPHABET, Inc.

Sell My House Fast San Diego California

Powered by